style: apply ruff auto-fix

- Auto-formatted code with ruff format
- Applied ruff linting fixes with --fix

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2026-02-22 16:32:30 +00:00
parent c54cbcbdd6
commit fde4199f5a
+1 -3
View File
@@ -111,9 +111,7 @@ class CSRFMiddleware(BaseHTTPMiddleware):
if request.method in CSRF_PROTECTED_METHODS and request.url.path not in CSRF_EXEMPT_PATHS:
submitted_token = await self._get_submitted_token(request)
if not submitted_token or not secrets.compare_digest(csrf_token, submitted_token):
logger.warning(
f"[SECURITY] CSRF_VALIDATION_FAILED method={request.method} path={request.url.path}"
)
logger.warning(f"[SECURITY] CSRF_VALIDATION_FAILED method={request.method} path={request.url.path}")
if request.url.path.startswith("/api/"):
return JSONResponse(
status_code=403,