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 <don.penney@windriver.com>
This commit is contained in:
Don Penney 2020-09-09 17:59:49 -04:00
parent 49e5911fdb
commit fcae730d65

View File

@ -55,7 +55,7 @@ commands =
basepython = python3 basepython = python3
usedevelop = False usedevelop = False
deps = deps =
flake8<3.6.0 flake8
description = description =
Run style checks Run style checks
commands = commands =
@ -65,8 +65,9 @@ commands =
[flake8] [flake8]
show-source = True show-source = True
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,release-tag-* exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,release-tag-*
# W504 line break after binary operator
# H102 Apache License format # H102 Apache License format
ignore = H102 ignore = W504,H102
[testenv:venv] [testenv:venv]
commands = {posargs} commands = {posargs}