aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Herrmann <adrian.herrmann@qt.io>2024-03-12 12:07:22 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-03-12 15:10:42 +0000
commitd6b54973a28992d4835388c90968efd7a02981d5 (patch)
tree362525cada5312072ce494018a0f7321739adfb3
parenta59ecff938f58e7be8fa7271f561a3c179f473f1 (diff)
flake8: Add E402 ignore for test_*.py
This now ignores E402 for Python files that start with "test_", end with "_test", or have "_test_" in between. Amends c58c8b252fab815fdb7ffc0a10946daab50b878d Pick-to: 6.5 Change-Id: I0702963628afa7a273d8adb32b1e8962d1b7fd8b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit f1c6a62572270272c942c059852158693fa43281) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--.flake82
1 files changed, 1 insertions, 1 deletions
diff --git a/.flake8 b/.flake8
index 5148db39e..a924358a5 100644
--- a/.flake8
+++ b/.flake8
@@ -6,5 +6,5 @@ per-file-ignores =
# for init_test_paths() hack
*_test_*.py:E402
*_test.py:E402
+ test_*.py:E402
__init__.py:F401,E402
-