fix(ci): restore noqa E402 on deferred imports
ci / lint-prettier (push) Successful in 8s
ci / lint-ruff (push) Successful in 4s
ci / lint-yaml (push) Successful in 5s
ci / lint-dockerfiles (push) Successful in 4s
ci / validate (push) Successful in 4s
ci / lint-audit (push) Failing after 47s
ci / publish (push) Successful in 13s

This commit is contained in:
2026-09-10 12:03:18 +02:00
parent b92f8d8914
commit d863b5144a
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -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
+1 -1
View File
@@ -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.