diff --git a/neutronclient/tests/unit/test_cli20.py b/neutronclient/tests/unit/test_cli20.py index 657b15e47..ee6d7ac8c 100644 --- a/neutronclient/tests/unit/test_cli20.py +++ b/neutronclient/tests/unit/test_cli20.py @@ -50,7 +50,7 @@ def capture_std_streams(): sys.stdout, sys.stderr = stdout, stderr -class FakeStdout: +class FakeStdout(object): def __init__(self): self.content = [] diff --git a/neutronclient/tests/unit/test_validators.py b/neutronclient/tests/unit/test_validators.py index 619acb817..a92496baa 100644 --- a/neutronclient/tests/unit/test_validators.py +++ b/neutronclient/tests/unit/test_validators.py @@ -19,7 +19,7 @@ from neutronclient.common import exceptions from neutronclient.common import validators -class FakeParsedArgs(): +class FakeParsedArgs(object): pass diff --git a/test-requirements.txt b/test-requirements.txt index 99578886c..b91035320 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,7 +1,7 @@ # The order of packages is significant, because pip processes them in the order # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. -hacking>=0.9.2,<0.10 +hacking>=0.10.0,<0.11 cliff-tablib>=1.0 coverage>=3.6 diff --git a/tox.ini b/tox.ini index dbed9e67a..94ab88246 100644 --- a/tox.ini +++ b/tox.ini @@ -38,12 +38,11 @@ downloadcache = ~/cache/pip [flake8] # E125 continuation line does not distinguish itself from next logical line -# H302 import only modules # # TODO Fix the following rules from hacking 0.9.x # E265 block comment should start with '# ' +# H105 Don't use author tags # H405 multi line docstring summary not separated with an empty line -# H307 like imports should be grouped together -ignore = E125,E265,H302,H307,H405 +ignore = E125,E265,H105,H405 show-source = true exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools