From 4c4dc04755bffe69e4cc1aa794d97a15049550d8 Mon Sep 17 00:00:00 2001 From: Pieter De Gendt Date: Wed, 17 Jul 2024 11:50:24 +0200 Subject: [PATCH] project: ignore .venv directory Additionally exclude the python .venv directory for flake8 if it exists. Signed-off-by: Pieter De Gendt --- .gitignore | 1 + tox.ini | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 2e73ec4..2a9df37 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ shippable/ # htmlcov is generated by tox due to coverage gathering in pytest htmlcov/ .dir-locals.el +.venv/ diff --git a/tox.ini b/tox.ini index 3708996..8dfe5bd 100644 --- a/tox.ini +++ b/tox.ini @@ -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]