[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v8 19/31] python: add excluded dirs to flake8 config
From: |
John Snow |
Subject: |
[PATCH v8 19/31] python: add excluded dirs to flake8 config |
Date: |
Thu, 27 May 2021 17:17:03 -0400 |
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>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
---
python/setup.cfg | 2 ++
1 file changed, 2 insertions(+)
diff --git a/python/setup.cfg b/python/setup.cfg
index 52a89a0a290..9aeab2bb0d3 100644
--- a/python/setup.cfg
+++ b/python/setup.cfg
@@ -24,6 +24,8 @@ packages =
[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.31.1
- [PATCH v8 07/31] python/machine: Trim line length to below 80 chars, (continued)
- [PATCH v8 07/31] python/machine: Trim line length to below 80 chars, John Snow, 2021/05/27
- [PATCH v8 08/31] iotests/297: add --namespace-packages to mypy arguments, John Snow, 2021/05/27
- [PATCH v8 09/31] python: create qemu packages, John Snow, 2021/05/27
- [PATCH v8 10/31] python: add qemu package installer, John Snow, 2021/05/27
- [PATCH v8 11/31] python: add VERSION file, John Snow, 2021/05/27
- [PATCH v8 12/31] python: add directory structure README.rst files, John Snow, 2021/05/27
- [PATCH v8 13/31] python: add MANIFEST.in, John Snow, 2021/05/27
- [PATCH v8 14/31] python: Add pipenv support, John Snow, 2021/05/27
- [PATCH v8 15/31] python: add pylint import exceptions, John Snow, 2021/05/27
- [PATCH v8 16/31] python: move pylintrc into setup.cfg, John Snow, 2021/05/27
- [PATCH v8 19/31] python: add excluded dirs to flake8 config,
John Snow <=
- [PATCH v8 18/31] python: move flake8 config to setup.cfg, John Snow, 2021/05/27
- [PATCH v8 17/31] python: add pylint to pipenv, John Snow, 2021/05/27
- [PATCH v8 20/31] python: Add flake8 to pipenv, John Snow, 2021/05/27
- [PATCH v8 21/31] python: move mypy.ini into setup.cfg, John Snow, 2021/05/27
- [PATCH v8 22/31] python: add mypy to pipenv, John Snow, 2021/05/27
- [PATCH v8 24/31] python/qemu: add isort to pipenv, John Snow, 2021/05/27
- [PATCH v8 23/31] python: move .isort.cfg into setup.cfg, John Snow, 2021/05/27
- [PATCH v8 25/31] python/qemu: add qemu package itself to pipenv, John Snow, 2021/05/27
- [PATCH v8 28/31] python: add Makefile for some common tasks, John Snow, 2021/05/27
- [PATCH v8 26/31] python: add devel package requirements to setuptools, John Snow, 2021/05/27