We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62ca841 commit 97fbae5Copy full SHA for 97fbae5
commitizen/project_info.py
@@ -6,7 +6,7 @@
6
7
8
def is_pre_commit_installed() -> bool:
9
- return bool(shutil.which("pre-commit")) or bool(shutil.which("prek"))
+ return any(shutil.which(tool) for tool in ("pre-commit", "prek"))
10
11
12
def get_default_version_provider() -> Literal[
0 commit comments