diff options
| author | Dennis Fink | 2026-11-13 18:02:49 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-11-13 18:02:49 +0100 |
| commit | fd61299d8a4d54836f0aa082aa47d02a786c7d93 (patch) | |
| tree | cbc2c20ca651ac45822aa64338a3cf27a43b2cda /webmentions_ssg/tasks | |
| parent | 177186a0952d51fc41f51e09a1ac8e60fdb26bd8 (diff) | |
| download | webmentions-ssg-fd61299d8a4d54836f0aa082aa47d02a786c7d93.tar.gz webmentions-ssg-fd61299d8a4d54836f0aa082aa47d02a786c7d93.zip | |
chore(core): enforce Ruff docstring spacing
Enable additional Ruff docstring checks for summary separation and
closing quotes, then normalize migration and application docstrings to
satisfy the new rules.
Diffstat (limited to 'webmentions_ssg/tasks')
| -rw-r--r-- | webmentions_ssg/tasks/extension.py | 1 | ||||
| -rw-r--r-- | webmentions_ssg/tasks/mentions.py | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/webmentions_ssg/tasks/extension.py b/webmentions_ssg/tasks/extension.py index 0e031e6..029de68 100644 --- a/webmentions_ssg/tasks/extension.py +++ b/webmentions_ssg/tasks/extension.py @@ -136,7 +136,6 @@ class Huey: def huey(self) -> BaseHuey: """Return the initialized Huey instance. - :return: Configured Huey backend instance. :raises RuntimeError: If the extension has not been initialized. """ if self._huey is None: diff --git a/webmentions_ssg/tasks/mentions.py b/webmentions_ssg/tasks/mentions.py index 687ba38..8f41902 100644 --- a/webmentions_ssg/tasks/mentions.py +++ b/webmentions_ssg/tasks/mentions.py @@ -57,8 +57,9 @@ def html_mentions_target(body: bytes, source_url: str, target_url: str) -> bool: def text_mentions_target(body: str, target_url: str) -> bool: - """Check whether plain text contains the target IRI, ignoring trailing prose - punctuation but not extra URL path or query characters. + """Check whether plain text contains the target IRI. + + Ignore trailing prose punctuation, but not extra URL path or query characters. :param body: Plain-text document body. :param target_url: Exact IRI to look for. |
