From de0b674025943dcc6aa21edc9e8027512964a605 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 14 Mar 2026 09:45:05 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index d55b3a87..82c4fd59 100644 --- a/app/main.py +++ b/app/main.py @@ -261,8 +261,8 @@ _error_templates = Jinja2Templates(directory=str(_error_templates_dir)) # Register the i18n translate helper as a global so error templates can use {{ _("key") }}. # Error pages use the default language (English); request-specific locale is not needed here. from app.utils.i18n import SUPPORTED_LANGUAGES as _SUPPORTED_LANGUAGES # noqa: E402 -from app.utils.i18n import translate as _translate_fn # noqa: E402 from app.utils.i18n import get_suggested_languages as _get_suggested_languages # noqa: E402 +from app.utils.i18n import translate as _translate_fn # noqa: E402 _error_templates.env.globals["_"] = lambda key, **kwargs: _translate_fn(key, "en", **kwargs) _error_templates.env.globals["min"] = min