Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f42d287

Browse files
committedMar 12, 2025·
Updating pre-commit.
1 parent 761c491 commit f42d287

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎numpydoc/validate.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,11 @@ def validate(obj_name, validator_cls=None, **validator_kwargs):
711711
errs.append(error("SS03"))
712712
if doc.summary != doc.summary.lstrip():
713713
errs.append(error("SS04"))
714-
elif doc.is_function_or_method and doc.summary.split(" ")[0][-1] == "s" and doc.summary.split(" ")[0][-2] != "s":
714+
elif (
715+
doc.is_function_or_method
716+
and doc.summary.split(" ")[0][-1] == "s"
717+
and doc.summary.split(" ")[0][-2] != "s"
718+
):
715719
errs.append(error("SS05"))
716720
if doc.num_summary_lines > 1:
717721
errs.append(error("SS06"))

0 commit comments

Comments
 (0)
Please sign in to comment.