Skip to content

Commit f8521ac

Browse files
authored
fix: hide the setuptools family when not using it (#657)
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 037b67a commit f8521ac

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/sp_repo_review/checks/setupcfg.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,9 @@ def check(setupcfg: configparser.ConfigParser | None) -> str | None:
4949
return ""
5050

5151

52-
def repo_review_checks() -> dict[str, SCFG]:
52+
def repo_review_checks(
53+
list_all: bool = True, setupcfg: configparser.ConfigParser | None = None
54+
) -> dict[str, SCFG]:
55+
if not list_all and setupcfg is None:
56+
return {}
5357
return {p.__name__: p() for p in SCFG.__subclasses__()}

0 commit comments

Comments
 (0)