File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import questionary
6
6
import yaml
7
- from packaging .version import Version
8
-
9
7
from commitizen import cmd , factory , out
10
8
from commitizen .__version__ import __version__
11
9
from commitizen .config import BaseConfig , JsonConfig , TomlConfig , YAMLConfig
14
12
from commitizen .exceptions import InitFailedError , NoAnswersError
15
13
from commitizen .git import get_latest_tag_name , get_tag_names , smart_open
16
14
from commitizen .version_types import VERSION_TYPES
15
+ from packaging .version import Version
17
16
18
17
19
18
class ProjectInfo :
@@ -66,7 +65,7 @@ def tags(self) -> Optional[List]:
66
65
67
66
@property
68
67
def is_pre_commit_installed (self ) -> bool :
69
- return not shutil .which ("pre-commit" )
68
+ return bool ( shutil .which ("pre-commit" ) )
70
69
71
70
72
71
class Init :
You can’t perform that action at this time.
0 commit comments