project: ignore .venv directory

Additionally exclude the python .venv directory for flake8 if it exists.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-07-17 11:50:24 +02:00 committed by Marc Herbert
parent 155b242f2c
commit 4c4dc04755
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -11,3 +11,4 @@ shippable/
# htmlcov is generated by tox due to coverage gathering in pytest
htmlcov/
.dir-locals.el
.venv/

View File

@ -17,8 +17,8 @@ envlist=py3
# - E305: expected 2 blank lines after class or function definition, found 1
# - W504: line break after binary operator
ignore = E126,E261,E302,E305,W504
# Don't lint setup.py, the .tox virtualenv directory, or the build directory
exclude = setup.py,.tox,build
# Don't lint setup.py, the .tox or python virtualenv directory, or the build directory
exclude = setup.py,.tox,.venv,build
max-line-length = 100
[mypy]