Update hacking version

Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: Ic44b280b346a5ab0e10202f4062c3c331e874e17
This commit is contained in:
jacky06 2019-01-04 23:26:12 +08:00
parent 8519cde1e4
commit d85a3a781a
3 changed files with 5 additions and 2 deletions

View File

@ -128,7 +128,7 @@ class ClustersTest(test.TestCase):
self.mock_cluster_get.assert_called_once_with(
test.IsHttpRequest(), u'123456')
self.mock_event_list.assert_called_once_with(
test.IsHttpRequest(), filters={'obj_id': u'123456'},
test.IsHttpRequest(), filters={'obj_id': u'123456'},
marker=None, paginate=True, reversed_order=False)
self.mock_cluster_policy_list.assert_called_once_with(
test.IsHttpRequest(), u'123456', {})

View File

@ -2,7 +2,7 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
# Hacking already pins down pep8, pyflakes and flake8
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
hacking>=1.1.0,<1.2.0 # Apache-2.0
coverage!=4.4,>=4.0 # Apache-2.0
mock>=2.0.0 # BSD

View File

@ -27,6 +27,9 @@ commands = flake8
[flake8]
show-source = True
# F405 TEMPLATES may be undefined, or defined from star imports
# (because it is not easy to avoid this in openstack_dashboard.test.settings)
ignore = F405
enable-extensions = H203,H106
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,.ropeproject,tools,node_modules