Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

"cz init" cannot set pre-commit hook correctly #743

Closed
@Lee-W

Description

@Lee-W

Description

After running cz init and choosing to use a pre-commit hook, we'll encounter the following error.

Failed to install pre-commit hook.
pre-commit is not installed in current environment.

Steps to reproduce

1 Run cz init
2. Choose to use pre-commit

Current behavior

Failed to setup pre-commit hook

Desired behavior

Setup pre-commit hook successfully

Screenshots

圖片

Environment

Commitizen Version: 3.2.1
Python Version: 3.10.6 (main, Sep 14 2022, 23:12:02) [Clang 14.0.0 (clang-1400.0.29.102)]
Operating System: Darwin

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions