aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg/views/session.py
diff options
context:
space:
mode:
authorDennis Fink2026-11-12 22:07:12 +0100
committerDennis Fink2026-11-12 22:07:12 +0100
commitc7993952c585b66acad5275e39dbf91cf662b975 (patch)
tree976b3746444b3bd0bbb269bef9197c8b6a2e1696 /webmentions_ssg/views/session.py
parentb930b4425b91aa42abcec6c3443685065a5ca242 (diff)
downloadwebmentions-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 'webmentions_ssg/views/session.py')
-rw-r--r--webmentions_ssg/views/session.py9
1 files changed, 3 insertions, 6 deletions
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.
"""