Remove unused imports, variables, and fix minor CodeQL findings

- Remove 28 unused imports across 22 test files
- Prefix 4 unused local variables with _ in app code
  (archives, bambu_mqtt, main) and remove 1 dead store
- Consolidate import/import-from in test_plate_detection.py
- Fix unreachable statement in test_archive_service.py
- Simplify redundant comparison in timelapse_processor.py

Resolves ~50 CodeQL py/unused-import, py/unused-local-variable,
py/import-and-import-from, py/unreachable-statement, and
py/redundant-comparison findings.
This commit is contained in:
maziggy
2026-02-06 12:19:17 +01:00
parent 5dcabbdda8
commit b99536cc33
26 changed files with 39 additions and 71 deletions
-1
View File
@@ -6,7 +6,6 @@ that could cause runtime errors but aren't caught by normal tests.
"""
import ast
import os
from pathlib import Path
import pytest