Merge "Bump hacking to 1.1.0"
This commit is contained in:
commit
9c71dcfa7c
@ -15,7 +15,7 @@
|
|||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
||||||
import pep8
|
import pycodestyle
|
||||||
|
|
||||||
|
|
||||||
PYTHON_CLIENTS = ['cinder', 'glance', 'keystone', 'nova', 'swift', 'neutron',
|
PYTHON_CLIENTS = ['cinder', 'glance', 'keystone', 'nova', 'swift', 'neutron',
|
||||||
@ -69,7 +69,7 @@ def scenario_tests_need_service_tags(physical_line, filename,
|
|||||||
|
|
||||||
def no_setup_teardown_class_for_tests(physical_line, filename):
|
def no_setup_teardown_class_for_tests(physical_line, filename):
|
||||||
|
|
||||||
if pep8.noqa(physical_line):
|
if pycodestyle.noqa(physical_line):
|
||||||
return
|
return
|
||||||
|
|
||||||
if 'tempest/test.py' in filename or 'tempest/lib/' in filename:
|
if 'tempest/test.py' in filename or 'tempest/lib/' in filename:
|
||||||
@ -164,7 +164,7 @@ def _common_service_clients_check(logical_line, physical_line, filename,
|
|||||||
if not METHOD.match(physical_line):
|
if not METHOD.match(physical_line):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if pep8.noqa(physical_line):
|
if pycodestyle.noqa(physical_line):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
@ -287,7 +287,7 @@ def dont_put_admin_tests_on_nonadmin_path(logical_line, physical_line,
|
|||||||
if 'tempest/api/' not in filename:
|
if 'tempest/api/' not in filename:
|
||||||
return
|
return
|
||||||
|
|
||||||
if pep8.noqa(physical_line):
|
if pycodestyle.noqa(physical_line):
|
||||||
return
|
return
|
||||||
|
|
||||||
if not re.match(r'class .*Test.*\(.*Admin.*\):', logical_line):
|
if not re.match(r'class .*Test.*\(.*Admin.*\):', logical_line):
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# The order of packages is significant, because pip processes them in the order
|
# 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
|
# of appearance. Changing the order has an impact on the overall integration
|
||||||
# process, which may cause wedges in the gate later.
|
# process, which may cause wedges in the gate later.
|
||||||
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
|
hacking>=1.1.0,<1.2.0 # Apache-2.0
|
||||||
mock>=2.0.0 # BSD
|
mock>=2.0.0 # BSD
|
||||||
coverage!=4.4,>=4.0 # Apache-2.0
|
coverage!=4.4,>=4.0 # Apache-2.0
|
||||||
oslotest>=3.2.0 # Apache-2.0
|
oslotest>=3.2.0 # Apache-2.0
|
||||||
|
3
tox.ini
3
tox.ini
@ -186,7 +186,8 @@ import_exceptions = tempest.services
|
|||||||
# E125 is a won't fix until https://github.com/jcrocholl/pep8/issues/126 is resolved. For further detail see https://review.openstack.org/#/c/36788/
|
# E125 is a won't fix until https://github.com/jcrocholl/pep8/issues/126 is resolved. For further detail see https://review.openstack.org/#/c/36788/
|
||||||
# E123 skipped because it is ignored by default in the default pep8
|
# E123 skipped because it is ignored by default in the default pep8
|
||||||
# E129 skipped because it is too limiting when combined with other rules
|
# E129 skipped because it is too limiting when combined with other rules
|
||||||
ignore = E125,E123,E129
|
# W504 skipped because it is overeager and unnecessary
|
||||||
|
ignore = E125,E123,E129,W504
|
||||||
show-source = True
|
show-source = True
|
||||||
exclude = .git,.venv,.tox,dist,doc,*egg,build
|
exclude = .git,.venv,.tox,dist,doc,*egg,build
|
||||||
enable-extensions = H106,H203,H904
|
enable-extensions = H106,H203,H904
|
||||||
|
Loading…
Reference in New Issue
Block a user