From 1004197193f5f1f2c4a6a4d327a39c91bddabf90 Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Thu, 19 Sep 2013 14:57:41 -0700 Subject: [PATCH] Make Flake8 go Green --- bot.py | 19 +++++++++++++++++-- tests/test_gerrit_comment.py | 14 ++++++++++++++ tox.ini | 2 +- 3 files changed, 32 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index 232beffc..4b24c3f2 100755 --- a/bot.py +++ b/bot.py @@ -1,5 +1,20 @@ #! /usr/bin/env python +# All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + + # The configuration file should look like: """ [ircbot] @@ -26,12 +41,12 @@ openstack-qa: import ConfigParser import daemon import irc.bot +import logging import os import sys import threading import time import yaml -import logging try: import daemon.pidlockfile @@ -117,8 +132,8 @@ class RecheckWatch(threading.Thread): def run(self): # Import here because it needs to happen after daemonization - from elasticRecheck import Stream from elasticRecheck import Classifier + from elasticRecheck import Stream classifier = Classifier(self.queries) stream = Stream(self.username, self.host, self.key) while True: diff --git a/tests/test_gerrit_comment.py b/tests/test_gerrit_comment.py index b8c555da..06a53110 100644 --- a/tests/test_gerrit_comment.py +++ b/tests/test_gerrit_comment.py @@ -1,3 +1,17 @@ +# All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + import ConfigParser import gerritlib import testtools diff --git a/tox.ini b/tox.ini index 5535c99c..e836287c 100644 --- a/tox.ini +++ b/tox.ini @@ -2,4 +2,4 @@ # H803 Skipped on purpose # E501 skipped temporarily -ignore = E123,E126,E128,E501,H803 +ignore = E123,E122,E126,E128,E501,H803