Skip to content

Commit cf2fe9b

Browse files
[doc] Add a check for partially completed documentation
1 parent 365e690 commit cf2fe9b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/exts/pylint_messages.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ def _get_message_data(data_path: Path) -> Tuple[str, str, str, str]:
7878
related = _get_titled_rst(
7979
title="Related links", text=_get_rst_as_str(related_rst_path)
8080
)
81+
assert (not bad_code and not related) or (
82+
"placeholder" not in good_code and "help us make the doc better" not in details
83+
), "Please remove placeholders if you completed the documentation"
8184
return good_code, bad_code, details, related
8285

8386

0 commit comments

Comments
 (0)