Skip to content

Commit 16f41f1

Browse files
committed
fix: skip readthedocs if no readthedocs file present
Signed-off-by: Henry Schreiner <[email protected]>
1 parent c64d08f commit 16f41f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sp_repo_review/checks/readthedocs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,5 +148,7 @@ def readthedocs(root: Traversable) -> dict[str, Any]:
148148
return {}
149149

150150

151-
def repo_review_checks() -> dict[str, ReadTheDocs]:
151+
def repo_review_checks(list_all: bool = True, readthedocs: dict[str, Any] | None = None) -> dict[str, ReadTheDocs]:
152+
if not list_all and not readthedocs:
153+
return {}
152154
return {p.__name__: p() for p in ReadTheDocs.__subclasses__()}

0 commit comments

Comments
 (0)