Update pyproject.toml and logging for stricter rules and improved error handling

- Ignored additional Ruff rules for test files, SQLAlchemy fixtures, and FastAPI-specific naming conventions.
- Suppressed passlib bcrypt warnings in `core.auth`.
- Improved exception handling in session marking with explicit logging for token parsing failures.
This commit is contained in:
2025-11-10 12:14:43 +01:00
parent c589b565f0
commit 424ca166b8
3 changed files with 26 additions and 8 deletions

View File

@@ -1,8 +1,5 @@
import logging
logging.getLogger("passlib").setLevel(logging.ERROR)
import asyncio
import logging
import uuid
from datetime import UTC, datetime, timedelta
from functools import partial
@@ -15,6 +12,9 @@ from pydantic import ValidationError
from app.core.config import settings
from app.schemas.users import TokenData, TokenPayload
# Suppress passlib bcrypt warnings about ident
logging.getLogger("passlib").setLevel(logging.ERROR)
# Password hashing context
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")