[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 32/44] python: add excluded dirs to flake8 config
From: |
John Snow |
Subject: |
[PULL 32/44] python: add excluded dirs to flake8 config |
Date: |
Thu, 27 May 2021 22:32:08 -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>
Message-id: 20210527211715.394144-20-jsnow@redhat.com
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 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
- [PULL 20/44] python/machine: Trim line length to below 80 chars, (continued)
- [PULL 20/44] python/machine: Trim line length to below 80 chars, John Snow, 2021/05/27
- [PULL 22/44] python: create qemu packages, John Snow, 2021/05/27
- [PULL 23/44] python: add qemu package installer, John Snow, 2021/05/27
- [PULL 26/44] python: add MANIFEST.in, John Snow, 2021/05/27
- [PULL 25/44] python: add directory structure README.rst files, John Snow, 2021/05/27
- [PULL 24/44] python: add VERSION file, John Snow, 2021/05/27
- [PULL 28/44] python: add pylint import exceptions, John Snow, 2021/05/27
- [PULL 27/44] python: Add pipenv support, John Snow, 2021/05/27
- [PULL 29/44] python: move pylintrc into setup.cfg, John Snow, 2021/05/27
- [PULL 30/44] python: add pylint to pipenv, John Snow, 2021/05/27
- [PULL 32/44] python: add excluded dirs to flake8 config,
John Snow <=
- [PULL 31/44] python: move flake8 config to setup.cfg, John Snow, 2021/05/27
- [PULL 34/44] python: move mypy.ini into setup.cfg, John Snow, 2021/05/27
- [PULL 33/44] python: Add flake8 to pipenv, John Snow, 2021/05/27
- [PULL 35/44] python: add mypy to pipenv, John Snow, 2021/05/27
- [PULL 36/44] python: move .isort.cfg into setup.cfg, John Snow, 2021/05/27
- [PULL 37/44] python/qemu: add isort to pipenv, John Snow, 2021/05/27
- [PULL 38/44] python/qemu: add qemu package itself to pipenv, John Snow, 2021/05/27
- [PULL 39/44] python: add devel package requirements to setuptools, John Snow, 2021/05/27
- [PULL 40/44] python: add avocado-framework and tests, John Snow, 2021/05/27
- [PULL 42/44] python: add .gitignore, John Snow, 2021/05/27