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/tasks/sender.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'webmentions_ssg/tasks/sender.py') diff --git a/webmentions_ssg/tasks/sender.py b/webmentions_ssg/tasks/sender.py index a9db128..3803463 100644 --- a/webmentions_ssg/tasks/sender.py +++ b/webmentions_ssg/tasks/sender.py @@ -33,8 +33,7 @@ from .discovery import ( def attempt_is_current(webmention: SentWebmention, revision: int) -> bool: - """ - Check whether a send attempt still represents the desired revision. + """Check whether a send attempt still represents the desired revision. The Webmention is refreshed from the database before comparing its desired and processed revisions. @@ -60,8 +59,7 @@ def retry_delay(attempt: int) -> timedelta: @huey.task() def send_webmention(webmention_uuid: uuid.UUID) -> None: - """ - Discover a receiver endpoint and send a Webmention. + """Discover a receiver endpoint and send a Webmention. The result of the attempt is stored on the corresponding sent Webmention. Temporary failures are recorded with an exponential retry deadline. The -- cgit v1.3.1