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 d172209 commit 85ad7c0Copy full SHA for 85ad7c0
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