-
-
Notifications
You must be signed in to change notification settings - Fork 298
Closed
Labels
Description
Description
When I run cz init
and choose none of the pre-commit hooks from commit-msg
and pre-push
, or one of them, it displays the following message.
commitizen already in pre-commit config
Failed to install pre-commit hook.
pre-commit is not installed in current environment.
Steps to reproduce
- Run
cz init
- Choose any one of the commit rule
- Enter the version
- Select any one or none of the pre-commit hooks from
commit-msg
,pre-push
rules
Current behavior
Displaying an error message
commitizen already in pre-commit config
Failed to install pre-commit hook.
pre-commit is not installed in current environment.
Desired behavior
I'm not sure if this is expected behavior, but I believe prompting a well-suited error message would be appropriate; if not, I believe it requires a fix.
Screenshots
Environment
- commitizen version:
2.42.1
- python version:
3.8.10
- operating system:
Linux