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
@@ -14,7 +14,7 @@ try:
logger.info("PDF reader: pymupdf (high performance)")
except ImportError:
try:
from pypdf import PdfReader # type: ignore # noqa: F811
from pypdf import PdfReader # type: ignore
logger.info("PDF reader: pypdf (pure Python)")
except ImportError:
logger.warning("No PDF reader available — install pypdf or pymupdf")