pep8: switched to neutron-lib hacking checks
A recent hacking check landed in neutron broke the pep8 target for the repo. Using hacking checks from neutron is error prone. This patch switches the repo to checks from neutron-lib. It also skips N530 check because the repo still imports from neutron.* Change-Id: I70ce6698a3f25af39917ec7bdf1a31a1d4cabf89
This commit is contained in:
parent
e4757ec07e
commit
f41dcd375a
5
tox.ini
5
tox.ini
@ -76,7 +76,8 @@ commands = python setup.py build_sphinx
|
|||||||
# E265 block comment should start with ‘# ‘
|
# E265 block comment should start with ‘# ‘
|
||||||
# H405 multi line docstring summary not separated with an empty line
|
# H405 multi line docstring summary not separated with an empty line
|
||||||
# TODO(marun) H404 multi line docstring should start with a summary
|
# TODO(marun) H404 multi line docstring should start with a summary
|
||||||
ignore = E125,E126,E128,E129,E265,H404,H405
|
# N530 direct neutron imports not allowed
|
||||||
|
ignore = E125,E126,E128,E129,E265,H404,H405,N530
|
||||||
show-source = true
|
show-source = true
|
||||||
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,.ropeproject,rally-scenarios
|
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,.ropeproject,rally-scenarios
|
||||||
|
|
||||||
@ -89,7 +90,7 @@ commands =
|
|||||||
|
|
||||||
[hacking]
|
[hacking]
|
||||||
import_exceptions = neutron_dynamic_routing._i18n
|
import_exceptions = neutron_dynamic_routing._i18n
|
||||||
local-check-factory = neutron.hacking.checks.factory
|
local-check-factory = neutron_lib.hacking.checks.factory
|
||||||
|
|
||||||
[testenv:genconfig]
|
[testenv:genconfig]
|
||||||
commands = {toxinidir}/tools/generate_config_file_samples.sh
|
commands = {toxinidir}/tools/generate_config_file_samples.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user