From d863b5144a262777dccaf9530ddbe20d0fee68f6 Mon Sep 17 00:00:00 2001 From: mr-forust Date: Thu, 10 Sep 2026 12:03:18 +0200 Subject: [PATCH] fix(ci): restore noqa E402 on deferred imports --- tests/test_integration.py | 10 +++++----- webui_server.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_integration.py b/tests/test_integration.py index 8682016..f39f352 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -51,8 +51,8 @@ os.environ["TELEGRAM_SCRAPER_PORT"] = "0" os.environ["TELEGRAM_SCRAPER_START_CONTINUOUS"] = "0" # Now safe to import app modules -import app_state -from app_state import ( +import app_state # noqa: E402 +from app_state import ( # noqa: E402 ACCOUNT_DEFAULTS, account_data_dir, account_exists, @@ -62,7 +62,7 @@ from app_state import ( list_accounts, load_account, ) -from health import health_payload +from health import health_payload # noqa: E402 def _init_test_env(): @@ -1564,6 +1564,6 @@ def cleanup_test_data(): shutil.rmtree(str(TEST_TMP), ignore_errors=True) -import atexit +import atexit # noqa: E402 -atexit.register(cleanup_test_data) +atexit.register(cleanup_test_data) # noqa: E402 diff --git a/webui_server.py b/webui_server.py index 45a74fe..63beb74 100644 --- a/webui_server.py +++ b/webui_server.py @@ -116,7 +116,7 @@ def parse_bool(value: Any, default: bool = False) -> bool: # ── L-8: trusted-host check ────────────────────────────────────────────── -import ipaddress +import ipaddress # noqa: E402 # Comma-separated extra trusted hostnames for browser state-mutating # requests when the panel is served through a proxy domain.