[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/5] python: add excluded dirs to flake8 config
From: |
John Snow |
Subject: |
[PATCH 2/5] python: add excluded dirs to flake8 config |
Date: |
Tue, 27 Oct 2020 18:38:12 -0400 |
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 cb696291ba38..d0ad683b5148 100644
--- a/python/setup.cfg
+++ b/python/setup.cfg
@@ -30,6 +30,8 @@ devel =
[flake8]
extend-ignore = E722 # Prefer pylint's bare-except checks to flake8's
+exclude = __pycache__,
+ .venv,
[mypy]
strict = True
--
2.26.2
[PATCH 2/5] python: add excluded dirs to flake8 config,
John Snow <=
[PATCH 4/5] python: add .gitignore, John Snow, 2020/10/27
Re: [PATCH 4/5] python: add .gitignore, John Snow, 2020/10/28
Re: [PATCH 4/5] python: add .gitignore, John Snow, 2020/10/28