From fde4199f5a2242e583ea48388a7620f54c19e5e6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 22 Feb 2026 16:32:30 +0000 Subject: [PATCH] style: apply ruff auto-fix - Auto-formatted code with ruff format - Applied ruff linting fixes with --fix Co-authored-by: github-actions[bot] --- app/middleware/csrf.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/middleware/csrf.py b/app/middleware/csrf.py index 4494e98b..480594d8 100644 --- a/app/middleware/csrf.py +++ b/app/middleware/csrf.py @@ -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,