chore(lint): ruff --fix sur le backend (cleanup pré-existant)

Réduit les erreurs ruff de 11 à 5 (toutes pré-existantes non auto-fixables) :
- F401 imports inutilisés dans auth/mfa.py
- I001 blocs d'imports non triés dans auth/router.py + main.py + pdf_reader.py

Les 5 restantes sont dans bookslm/export/watcher (code pré-existant, hors scope).

Vérifié : pytest full suite reste 492 passed, 5 skipped, 0 failed.
This commit is contained in:
2026-09-07 09:01:40 -04:00
parent ec56bc32f8
commit 83355a25c8
4 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -693,9 +693,9 @@ except Exception: # pragma: no cover - WeasyPrint/GTK missing
logging.getLogger("obsigate").warning("PDF export unavailable (WeasyPrint/GTK not found)")
# Multi-format export (HTML / MD bundle / ePub) — pure Python, no heavy deps.
from backend.export import export_epub, export_html, export_md_bundle, ExportError # noqa: E402
from backend.ai_routes import router as ai_router
from backend.bookslm_routes import router as bookslm_router
from backend.export import ExportError, export_epub, export_html, export_md_bundle
from backend.saved_searches import delete_saved, get_saved, save_search
from backend.share import (
create_share,