aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Herrmann <adrian.herrmann@qt.io>2024-03-12 12:07:22 +0100
committerAdrian Herrmann <adrian.herrmann@qt.io>2024-03-12 15:09:39 +0100
commitf1c6a62572270272c942c059852158693fa43281 (patch)
tree5a0d0e3f503192475f117d28091e5e5e1603a1a5
parent1bba44ea86209b122da8c23b6a7e12ab0063f1aa (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.6 6.5 Change-Id: I0702963628afa7a273d8adb32b1e8962d1b7fd8b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-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
-