From fa11d9a0a5af3b9a9714bbfa82b6dc7b9f40e5df Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Fri, 16 Sep 2016 22:20:17 +0000 Subject: [PATCH] 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 --- tox.ini | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 2b23ff89..f7c5a213 100644 --- a/tox.ini +++ b/tox.ini @@ -76,7 +76,8 @@ commands = python setup.py build_sphinx # E265 block comment should start with ‘# ‘ # H405 multi line docstring summary not separated with an empty line # 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 exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,.ropeproject,rally-scenarios @@ -89,7 +90,7 @@ commands = [hacking] import_exceptions = neutron_dynamic_routing._i18n -local-check-factory = neutron.hacking.checks.factory +local-check-factory = neutron_lib.hacking.checks.factory [testenv:genconfig] commands = {toxinidir}/tools/generate_config_file_samples.sh