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.
2 parents cbab456 + eb39f8b commit 9d2192fCopy full SHA for 9d2192f
commitizen/commands/init.py
@@ -4,8 +4,6 @@
4
5
import questionary
6
import yaml
7
-from packaging.version import Version
8
-
9
from commitizen import cmd, factory, out
10
from commitizen.__version__ import __version__
11
from commitizen.config import BaseConfig, JsonConfig, TomlConfig, YAMLConfig
@@ -14,6 +12,7 @@
14
12
from commitizen.exceptions import InitFailedError, NoAnswersError
15
13
from commitizen.git import get_latest_tag_name, get_tag_names, smart_open
16
from commitizen.version_types import VERSION_TYPES
+from packaging.version import Version
17
18
19
class ProjectInfo:
@@ -66,7 +65,7 @@ def tags(self) -> Optional[List]:
66
65
67
@property
68
def is_pre_commit_installed(self) -> bool:
69
- return not shutil.which("pre-commit")
+ return bool(shutil.which("pre-commit"))
70
71
72
class Init:
0 commit comments