[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 13/25] python: add excluded dirs to flake8 config
From: |
John Snow |
Subject: |
[PATCH v5 13/25] python: add excluded dirs to flake8 config |
Date: |
Thu, 18 Feb 2021 14:27:21 -0500 |
Instruct flake8 to avoid certain well-known directories created by
python tooling that it ought not check.
Note that at-present, nothing actually creates a ".venv" directory; but
it is in such widespread usage as a de-facto location for a developer's
virtual environment that it should be excluded anyway. A forthcoming
commit canonizes this with a "make venv" command.
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 9ecb2902006..f21a1c42fc0 100644
--- a/python/setup.cfg
+++ b/python/setup.cfg
@@ -21,6 +21,8 @@ packages = find_namespace:
[flake8]
extend-ignore = E722 # Prefer pylint's bare-except checks to flake8's
+exclude = __pycache__,
+ .venv,
[pylint.messages control]
# Disable the message, report, category or checker with the given id(s). You
--
2.29.2
- [PATCH v5 02/25] iotests/297: add --namespace-packages to mypy arguments, (continued)
- [PATCH v5 02/25] iotests/297: add --namespace-packages to mypy arguments, John Snow, 2021/02/18
- [PATCH v5 03/25] python: create qemu packages, John Snow, 2021/02/18
- [PATCH v5 04/25] python: create utils sub-package, John Snow, 2021/02/18
- [PATCH v5 05/25] python: add qemu package installer, John Snow, 2021/02/18
- [PATCH v5 06/25] python: add VERSION file, John Snow, 2021/02/18
- [PATCH v5 07/25] python: add directory structure README.rst files, John Snow, 2021/02/18
- [PATCH v5 10/25] python: move pylintrc into setup.cfg, John Snow, 2021/02/18
- [PATCH v5 09/25] python: add pylint import exceptions, John Snow, 2021/02/18
- [PATCH v5 11/25] python: add pylint to pipenv, John Snow, 2021/02/18
- [PATCH v5 14/25] python: Add flake8 to pipenv, John Snow, 2021/02/18
- [PATCH v5 13/25] python: add excluded dirs to flake8 config,
John Snow <=
- [PATCH v5 08/25] python: Add pipenv support, John Snow, 2021/02/18
- [PATCH v5 15/25] python: move mypy.ini into setup.cfg, John Snow, 2021/02/18
- [PATCH v5 16/25] python: add mypy to pipenv, John Snow, 2021/02/18
- [PATCH v5 12/25] python: move flake8 config to setup.cfg, John Snow, 2021/02/18
- [PATCH v5 17/25] python: move .isort.cfg into setup.cfg, John Snow, 2021/02/18
- [PATCH v5 18/25] python/qemu: add isort to pipenv, John Snow, 2021/02/18
- [PATCH v5 19/25] python/qemu: add qemu package itself to pipenv, John Snow, 2021/02/18
- [PATCH v5 21/25] python: add pytest and tests, John Snow, 2021/02/18
- [PATCH v5 23/25] python: add .gitignore, John Snow, 2021/02/18
- [PATCH v5 22/25] python: add Makefile for some common tasks, John Snow, 2021/02/18