From 968e1b4e4a6fbd5a15037cdb11a3f9dee5108570 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Sat, 14 Nov 2026 18:44:23 +0100 Subject: docs(core): standardize reST docstrings Expand function and method documentation with consistent reST parameter, return, and exception fields while clarifying behavior where additional context is useful. Normalize test and migration docstrings to the same documentation conventions. --- webmentions_ssg/forms.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'webmentions_ssg/forms.py') diff --git a/webmentions_ssg/forms.py b/webmentions_ssg/forms.py index f5fba51..e3dcdc0 100644 --- a/webmentions_ssg/forms.py +++ b/webmentions_ssg/forms.py @@ -143,7 +143,11 @@ class EndpointForm(FlaskForm): ) def validate_source(self, field: Field) -> None: - """Reject a source URL that equals the target URL.""" + """Reject a source URL that equals the target URL. + + :param field: Source URL field being validated. + :raises ValidationError: If the source URL equals the target URL. + """ if field.data == self.target.data: raise ValidationError(field.gettext("Field must not be equal to target.")) -- cgit v1.3.1