Skip to content

Commit 040c5c0

Browse files
fix: skip readthedocs if no readthedocs file present (#693)
* fix: skip readthedocs if no readthedocs file present Signed-off-by: Henry Schreiner <[email protected]> * style: pre-commit fixes --------- Signed-off-by: Henry Schreiner <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 8194baa commit 040c5c0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/sp_repo_review/checks/readthedocs.py

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

150150

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

0 commit comments

Comments
 (0)