From c7993952c585b66acad5275e39dbf91cf662b975 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Thu, 12 Nov 2026 22:07:12 +0100 Subject: chore(core): enable stricter Ruff lint rules Expand Ruff checks for bugbear, complexity, pathlib, return statements, simplifications, upgrades, and docstring style. Apply the resulting behavior-neutral cleanup across application and test code. --- webmentions_ssg/__init__.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'webmentions_ssg/__init__.py') diff --git a/webmentions_ssg/__init__.py b/webmentions_ssg/__init__.py index 63e9f13..46b78ea 100644 --- a/webmentions_ssg/__init__.py +++ b/webmentions_ssg/__init__.py @@ -25,8 +25,7 @@ from .views import register_routes def create_app(config_class: type[DefaultConfig] | None = None) -> Flask: - """ - Create and configure the Flask application. + """Create and configure the Flask application. The application configuration is selected based on the development environment unless an explicit configuration class is provided. Logging, @@ -37,7 +36,6 @@ def create_app(config_class: type[DefaultConfig] | None = None) -> Flask: development or production configuration automatically. :return: Configured Flask application. """ - development = os.environ.get("WEBMENTIONS_SSG_DEV", "").lower() in { "1", "true", @@ -120,8 +118,7 @@ def create_app(config_class: type[DefaultConfig] | None = None) -> Flask: @app.context_processor def inject_version(): - """ - Add the application version to the template context. + """Add the application version to the template context. :return: Template context containing the application version. """ -- cgit v1.3.1