From b22f9a6af6856ed2cafa79dfb2909e20b554f2f9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 8 Mar 2026 22:40:15 +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/main.py | 1 + tests/test_main.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 258897e1..11cb9410 100644 --- a/app/main.py +++ b/app/main.py @@ -48,6 +48,7 @@ SESSION_SECRET = ( settings.session_secret or "INSECURE_DEFAULT_FOR_DEVELOPMENT_ONLY_DO_NOT_USE_IN_PRODUCTION_MINIMUM_32_CHARS" ) + @asynccontextmanager async def lifespan(app: FastAPI): """ diff --git a/tests/test_main.py b/tests/test_main.py index f490d223..b59c2c93 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -120,7 +120,6 @@ class TestLifespanEvents: @pytest.mark.asyncio async def test_lifespan_calls_init_sentry_after_db_settings_load(self): """Test that init_sentry is called inside lifespan after load_settings_from_db.""" - from unittest.mock import call with ( patch("app.database.init_db"),