fix(lint): pin ruff version, add pre-commit hook, fix all lint errors
Some checks failed
CI / ruff (push) Successful in 9s
CI / architecture (push) Has been cancelled
CI / dependency-scanning (push) Has been cancelled
CI / audit (push) Has been cancelled
CI / docs (push) Has been cancelled
CI / pytest (push) Has been cancelled

- Pin ruff==0.8.4 in requirements-dev.txt (was >=0.8.4, CI got newer
  version with different import sorting rules)
- Add ruff to .pre-commit-config.yaml with --fix to auto-sort imports
  on commit (prevents PyCharm import reordering from reaching CI)
- Fix I001 import sorting in 6 files
- Fix F401 unused import (sqlalchemy.Numeric in subscription.py)
- Fix noqa false positive in validate_architecture.py comment

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-13 21:52:41 +01:00
parent 9c27fa02b0
commit 531487f5c9
11 changed files with 31 additions and 29 deletions

View File

@@ -4663,7 +4663,7 @@ class ArchitectureValidator:
if imported_module == module_name:
continue
# Skip suppression comments (# IMPORT-002 or # noqa: import-002)
# Skip suppression comments (# IMPORT-002)
if "import-002" in line.lower():
continue