pre-commit
fail even if the problem is fixed automatically
#1434
Labels
pre-commit
fail even if the problem is fixed automatically
#1434
Description
Every time I try to commit something and hope the format should be fixed automatically, the pre-commit
Format
fails.Yes, the format issue is fixed, but the commit fails.
Then I either have to
git commit -a
orcz c -a --retry
to try again.I haven't encountered similar issues when I worked on
npm
projects withhusky
pre-commit hooks + something likeprettier --write
.Steps to reproduce
git switch -c tmp
.py
file to break the formatgit commit -am "doc: xyz" --allow-empty
Current behavior
The format is fixed, but no new git commit.
Desired behavior
The format should be fixed and there should be a new commit
doc: xyz
with the fixed change.Screenshots
No response
Environment
Commitizen Version: 4.7.2
Python Version: 3.13.2 (main, May 12 2025, 02:57:09) [Clang 17.0.0 (clang-1700.0.13.3)]
Operating System: Darwin
The text was updated successfully, but these errors were encountered: