Exclude all files starting with . from flake8 tests

Some tests tool and IDE may create a .local directory inside the repo
with virtualenvs for dependencies, other tools may create . directories
or files for temporary reports.
While they can be removed in a second time, or configured differently,
it's advisable to just exclude all file starting with . from the
flake8 tests to avoid confusion and possible unexpected errors.

Change-Id: I5dc2fd2dec9690c77babe0c2b1dc5d0991413b32
This commit is contained in:
Riccardo Pittau 2023-03-28 18:11:35 +02:00
parent abbd859b76
commit ebc1053cee

View File

@ -132,7 +132,7 @@ commands = {posargs}
# [W503] Line break before binary operator.
ignore = E129,E741,W503
filename = *.py,app.wsgi
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
exclude=.*,dist,doc,*lib/python*,*egg,build
import-order-style = pep8
application-import-names = ironic
max-complexity=19