From fcae730d65fe145e76a3d384360327a6b8f61c44 Mon Sep 17 00:00:00 2001 From: Don Penney Date: Wed, 9 Sep 2020 17:59:49 -0400 Subject: [PATCH] Use newer flake8 to run on ubuntu-focal Zuul machines flake8 3.5.0 fails on ubuntu-focal zuul machines running python3.8 with the following error: AttributeError: 'FlakesChecker' object has no attribute 'CONSTANT' The update removes the version constraint to use newer flake8. This also ignores new warnings/errors, which should be addressed in a future update to remove the ignores. Change-Id: I16dc579f7ee803881c42ff6048ddd2f6bb0c553b Partial-Bug: 1895054 Signed-off-by: Don Penney --- tox.ini | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 7e3d3ed4..637284fc 100644 --- a/tox.ini +++ b/tox.ini @@ -55,7 +55,7 @@ commands = basepython = python3 usedevelop = False deps = - flake8<3.6.0 + flake8 description = Run style checks commands = @@ -65,8 +65,9 @@ commands = [flake8] show-source = True exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,release-tag-* +# W504 line break after binary operator # H102 Apache License format -ignore = H102 +ignore = W504,H102 [testenv:venv] commands = {posargs}