Fix flake8 3.6.0 errors

Flake8 3.6.0 now warns about both line break after and *before* binary
operator, you have to choose whether you use W503 or W504. Disable the
newer W504.

Also, ignore warning about invalid escape sequence in regex.

Change-Id: Ibfbd5df21e01d5a7bd44a216ff63bc805dd5c186
This commit is contained in:
Andreas Jaeger 2018-10-25 08:09:28 +02:00
parent 08af5f0110
commit 93ddc0247d
2 changed files with 4 additions and 2 deletions

View File

@ -78,7 +78,7 @@ class TestAgent(testtools.TestCase):
l = a.list()
self.assertEqual(2, len(l))
run('^(?!\(stdin\)).*')
run('^(?!\(stdin\)).*') # noqa
l = a.list()
self.assertEqual(1, len(l))

View File

@ -53,6 +53,8 @@ commands = {posargs}
# These are ignored intentionally in openstack-infra projects;
# please don't submit patches that solely correct them or enable them.
# E402 - ansible modules put documentation before imports. Align to ansible.
ignore = E125,E129,E402,E741,H
# W504 - line break after binary operator, we cannot have both
# W503 and W504 enabled
ignore = E125,E129,E402,E741,W504,H
show-source = True
exclude = .venv,.tox,dist,doc,build,*.egg