Skip to content

Commit 85ad7c0

Browse files
committed
refactor(project_info): enhance pre-commit check to support multiple tools
1 parent d172209 commit 85ad7c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commitizen/project_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
def is_pre_commit_installed() -> bool:
9-
return bool(shutil.which("pre-commit")) or bool(shutil.which("prek"))
9+
return any(shutil.which(tool) for tool in ("pre-commit", "prek"))
1010

1111

1212
def get_default_version_provider() -> Literal[

0 commit comments

Comments
 (0)