diff --git a/glean/cmd.py b/glean/cmd.py index 280d78c..4dd1298 100644 --- a/glean/cmd.py +++ b/glean/cmd.py @@ -69,8 +69,7 @@ def safe_open(*args, **kwargs): def _exists_rh_interface(name, distro): file_to_check = _network_files(distro)['ifcfg'] + '-{name}'.format( - name=name - ) + name=name) return os.path.exists(file_to_check) diff --git a/tox.ini b/tox.ini index a82e078..c9ac642 100644 --- a/tox.ini +++ b/tox.ini @@ -30,13 +30,8 @@ basepython = python3 commands = python setup.py build_sphinx [flake8] -# Hacking ignored becaues its rules are too zealous and cause more -# grief than value. -# E123, E125 skipped as they are invalid PEP-8. -# W503 contradicts W504 which seems more preferred per -# https://www.python.org/dev/peps/pep-0008/#should-a-line-break-before-or-after-a-binary-operator - show-source = True -ignore = E123,E125,W503,H +# Per general Zuul projects +ignore = E124,E125,E129,E402,E741,W503,W504 builtins = _ -exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build +exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,glean/_vendor/*