From d6b54973a28992d4835388c90968efd7a02981d5 Mon Sep 17 00:00:00 2001 From: Adrian Herrmann Date: Tue, 12 Mar 2024 12:07:22 +0100 Subject: 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 (cherry picked from commit f1c6a62572270272c942c059852158693fa43281) Reviewed-by: Qt Cherry-pick Bot --- .flake8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 - -- cgit v1.2.3