diff options
| author | Dennis Fink | 2026-11-12 22:07:12 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-11-12 22:07:12 +0100 |
| commit | c7993952c585b66acad5275e39dbf91cf662b975 (patch) | |
| tree | 976b3746444b3bd0bbb269bef9197c8b6a2e1696 /webmentions_ssg/__init__.py | |
| parent | b930b4425b91aa42abcec6c3443685065a5ca242 (diff) | |
| download | webmentions-ssg-c7993952c585b66acad5275e39dbf91cf662b975.tar.gz webmentions-ssg-c7993952c585b66acad5275e39dbf91cf662b975.zip | |
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.
Diffstat (limited to '')
| -rw-r--r-- | webmentions_ssg/__init__.py | 7 |
1 files changed, 2 insertions, 5 deletions
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. """ |
