[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 21/24] python: add excluded dirs to flake8 config
From: |
John Snow |
Subject: |
[PATCH v4 21/24] python: add excluded dirs to flake8 config |
Date: |
Thu, 11 Feb 2021 13:58:53 -0500 |
Following patches make obvious that we ought to ignore certain
directories to avoid wildly erroneous flake8 output.
Signed-off-by: John Snow <jsnow@redhat.com>
---
python/setup.cfg | 2 ++
1 file changed, 2 insertions(+)
diff --git a/python/setup.cfg b/python/setup.cfg
index 2c5943277d7..2c12d9ab89b 100644
--- a/python/setup.cfg
+++ b/python/setup.cfg
@@ -31,6 +31,8 @@ devel =
[flake8]
extend-ignore = E722 # Prefer pylint's bare-except checks to flake8's
+exclude = __pycache__,
+ .venv,
[mypy]
strict = True
--
2.29.2
- Re: [PATCH v4 16/24] python: move .isort.cfg into setup.cfg, (continued)
- [PATCH v4 15/24] python: add mypy to pipenv, John Snow, 2021/02/11
- [PATCH v4 17/24] python/qemu: add isort to pipenv, John Snow, 2021/02/11
- [PATCH v4 23/24] python: add .gitignore, John Snow, 2021/02/11
- [PATCH v4 18/24] python/qemu: add qemu package itself to pipenv, John Snow, 2021/02/11
- [PATCH v4 21/24] python: add excluded dirs to flake8 config,
John Snow <=
- [PATCH v4 22/24] python: add Makefile for some common tasks, John Snow, 2021/02/11
- [PATCH v4 20/24] python: add pytest and tests, John Snow, 2021/02/11
- Re: [PATCH v4 00/24] python: create installable package, Cleber Rosa, 2021/02/11