From a69fe44ff142b27b9a0dbcf643dc92a29a2a26bc Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Tue, 24 Mar 2015 11:40:54 -0700 Subject: Move to hacking 0.10 Release notes: http://lists.openstack.org/pipermail/openstack-dev/2015-January/054165.html Remove deleted hacking rules from tox.ini (H803, H402, H305) Fix minor W292 issues from new hacking. Change-Id: I67ea3467ded1ec5b82ce03b4f65e697c3defd29a --- tempest_lib/exceptions.py | 2 +- tempest_lib/tests/test_tempest_lib.py | 2 +- test-requirements.txt | 3 ++- tox.ini | 5 +---- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/tempest_lib/exceptions.py b/tempest_lib/exceptions.py index ba368a5..07952b6 100644 --- a/tempest_lib/exceptions.py +++ b/tempest_lib/exceptions.py @@ -154,4 +154,4 @@ class EndpointNotFound(TempestException): class InvalidCredentials(TempestException): - message = "Invalid Credentials" \ No newline at end of file + message = "Invalid Credentials" diff --git a/tempest_lib/tests/test_tempest_lib.py b/tempest_lib/tests/test_tempest_lib.py index 8f75057..76d74a6 100644 --- a/tempest_lib/tests/test_tempest_lib.py +++ b/tempest_lib/tests/test_tempest_lib.py @@ -25,4 +25,4 @@ from tempest_lib.tests import base class TestTempest_lib(base.TestCase): def test_something(self): - pass \ No newline at end of file + pass diff --git a/test-requirements.txt b/test-requirements.txt index aed1f05..edaf276 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,7 +1,8 @@ # 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.11,>=0.10.0 + coverage>=3.6 discover diff --git a/tox.ini b/tox.ini index d2de02c..708c613 100644 --- a/tox.ini +++ b/tox.ini @@ -26,13 +26,10 @@ commands = python setup.py testr --coverage --coverage-package-name='tempest_lib commands = python setup.py build_sphinx [flake8] -# H803 skipped on purpose per list discussion. # E125 skipped as it is invalid PEP-8. -# H402 skipped because some docstrings aren't sentences # E123 skipped because it is ignored by default in the default pep8 # E129 skipped because it is too limiting when combined with other rules -# H305 skipped because it is inconsistent between python versions show-source = True -ignore = E125,H803,H402,E123,E129,H305 +ignore = E125,E123,E129 builtins = _ exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build -- cgit v1.2.1