diff options
Diffstat (limited to 'webmentions_ssg/__init__.py')
| -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. """ |
