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/endpoint.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'webmentions_ssg/views/endpoint.py') diff --git a/webmentions_ssg/views/endpoint.py b/webmentions_ssg/views/endpoint.py index 1c2fe13..baab397 100644 --- a/webmentions_ssg/views/endpoint.py +++ b/webmentions_ssg/views/endpoint.py @@ -99,8 +99,7 @@ def submit_received(source: str, target: str) -> tuple[uuid.UUID, bool] | None: @LIMITER.limit(lambda: current_app.config["ENDPOINT_RATE_LIMIT"]) @CSRF.exempt def endpoint() -> ResponseReturnValue: - """ - Receive and queue a Webmention for verification. + """Receive and queue a Webmention for verification. Existing Webmentions with the same source and target are reset for reverification. Concurrent insertion of the same Webmention is handled by @@ -134,8 +133,7 @@ def endpoint() -> ResponseReturnValue: @root_page.route("/status/") def status(identifier: uuid.UUID) -> ResponseReturnValue: - """ - Display the verification status of a received Webmention. + """Display the verification status of a received Webmention. :param identifier: Identifier of the Webmention to display. :return: Rendered Webmention status page. -- cgit v1.3.1