Update hacking for Python3

The repo is Python 3 now, so update hacking to version 2.0 which
supports Python 3.

blacklist:
W504 line break after binary operator

fix:
E117 over-indented

Change-Id: I5578956c5a3d496f16e41100c5a2f5e99b42f9a7
This commit is contained in:
Andreas Jaeger 2020-03-27 20:59:52 +01:00
parent 2f0bad48ba
commit 0b9cef46ec
3 changed files with 3 additions and 3 deletions

View File

@ -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.11,>=0.10.0
hacking>=2.0,<2.1 # Apache-2.0
# this is required for the tests
oslotest>=3.2.0 # Apache-2.0

View File

@ -169,7 +169,7 @@ def _is_valid_command(ep_name, ep_module_name, valid_cmds):
if (module_parts[0] == valid_module_parts[0] and
module_parts[1] == valid_module_parts[1] and
module_parts[3] == valid_module_parts[3]):
return True
return True
return False

View File

@ -22,7 +22,7 @@ commands =
sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html
[flake8]
ignore = E123,H405
ignore = E123,H405,W504
show-source = True
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,__init__.py