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 44
55import questionary
66import yaml
7- from packaging .version import Version
8-
97from commitizen import cmd , factory , out
108from commitizen .__version__ import __version__
119from commitizen .config import BaseConfig , JsonConfig , TomlConfig , YAMLConfig
1412from commitizen .exceptions import InitFailedError , NoAnswersError
1513from commitizen .git import get_latest_tag_name , get_tag_names , smart_open
1614from commitizen .version_types import VERSION_TYPES
15+ from packaging .version import Version
1716
1817
1918class ProjectInfo :
@@ -66,7 +65,7 @@ def tags(self) -> Optional[List]:
6665
6766 @property
6867 def is_pre_commit_installed (self ) -> bool :
69- return not shutil .which ("pre-commit" )
68+ return bool ( shutil .which ("pre-commit" ) )
7069
7170
7271class Init :
You can’t perform that action at this time.
0 commit comments