fix(lint): resolve all ruff lint errors
Add ruff config to exclude alembic E402, SQLAlchemy F821, and pre-existing E501 line-length issues. Auto-fix 69 unused imports and 2 f-strings without placeholders. Manually fix 8 unused variables. Apply ruff format to 127 files. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -9,7 +9,6 @@ for startup validation, async only for middleware tests.
|
||||
"""
|
||||
|
||||
from types import SimpleNamespace
|
||||
from unittest.mock import patch
|
||||
|
||||
import pytest
|
||||
|
||||
@@ -114,7 +113,9 @@ class TestSecurityHeadersMiddleware:
|
||||
response = await client.get("/test")
|
||||
|
||||
assert response.status_code == 200
|
||||
assert response.headers["strict-transport-security"] == "max-age=31536000; includeSubDomains"
|
||||
assert (
|
||||
response.headers["strict-transport-security"] == "max-age=31536000; includeSubDomains"
|
||||
)
|
||||
assert response.headers["x-content-type-options"] == "nosniff"
|
||||
assert response.headers["x-frame-options"] == "DENY"
|
||||
assert response.headers["cache-control"] == "no-store"
|
||||
|
||||
Reference in New Issue
Block a user