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/views/session.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'webmentions_ssg/views/session.py') diff --git a/webmentions_ssg/views/session.py b/webmentions_ssg/views/session.py index 7bd8a10..3f8a0f2 100644 --- a/webmentions_ssg/views/session.py +++ b/webmentions_ssg/views/session.py @@ -19,8 +19,7 @@ from . import root_page @root_page.route("/") def index() -> ResponseReturnValue: - """ - Redirect to the received Webmentions view. + """Redirect to the received Webmentions view. :return: Redirect response to the received Webmentions view. """ @@ -40,8 +39,7 @@ def index() -> ResponseReturnValue: error_message="Too many login attempts. Please try again later.", ) def login() -> ResponseReturnValue: - """ - Authenticate a user and start a login session. + """Authenticate a user and start a login session. Authenticated users are redirected to the application index. After a successful login, the user is redirected to the requested local URL when @@ -84,8 +82,7 @@ def login() -> ResponseReturnValue: @root_page.route("/logout", methods=("POST",)) @login_required def logout() -> ResponseReturnValue: - """ - End the current user's login session. + """End the current user's login session. :return: Redirect response to the application index. """ -- cgit v1.3.1