File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ rm -f test_commit.txt test_commit_invalid.txt test_complex_commit.txt
107107### Integration Testing
108108``` bash
109109# Test as pre-commit hook
110- pre-commit try-repo . --verbose --hook-stage prepare- commit-msg
110+ pre-commit try-repo . --verbose --hook-stage commit-msg
111111
112112# Test wheel installation
113113python3 -m pip install dist/* .whl # After running nox -s build
Original file line number Diff line number Diff line change 55 autoupdate_schedule : quarterly
66
77# https://pre-commit.com/
8- # prepare- commit-msg is used by hook id: check-message
9- default_install_hook_types : [pre-commit, prepare- commit-msg]
8+ # commit-msg is used by hook id: check-message
9+ default_install_hook_types : [pre-commit, commit-msg]
1010repos :
1111- repo : https://github.com/pre-commit/pre-commit-hooks
1212 rev : v6.0.0
Original file line number Diff line number Diff line change 55 args : [--message]
66 pass_filenames : true
77 language : python
8- stages : [commit-msg, prepare-commit-msg ]
8+ stages : [commit-msg]
99- id : check-branch
1010 name : check branch naming
1111 description : ensures branch naming to match regex
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ We appreciate your contributions to make Commit Check even better!
2121### Debug commit-check pre-commit hook
2222
2323``` bash
24- pre-commit try-repo ./../commit-check/ check-message --verbose --hook-stage prepare- commit-msg --commit-msg-filename .git/COMMIT_EDITMSG
24+ pre-commit try-repo ./../commit-check/ check-message --verbose --hook-stage commit-msg --commit-msg-filename .git/COMMIT_EDITMSG
2525```
2626
2727### Debug commit-check wheel package
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ Running as pre-commit hook
7171 - repo : https://github.com/commit-check/commit-check
7272 rev : the tag or revision
7373 hooks : # support hooks
74- - id : check-message # requires prepare- commit-msg hook
74+ - id : check-message # requires commit-msg hook
7575 - id : check-branch
7676 - id : check-author-name
7777 - id : check-author-email
You can’t perform that action at this time.
0 commit comments