Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ rm -f test_commit.txt test_commit_invalid.txt test_complex_commit.txt
### Integration Testing
```bash
# Test as pre-commit hook
pre-commit try-repo . --verbose --hook-stage prepare-commit-msg
pre-commit try-repo . --verbose --hook-stage commit-msg

# Test wheel installation
python3 -m pip install dist/*.whl # After running nox -s build
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ ci:
autoupdate_schedule: quarterly

# https://pre-commit.com/
# prepare-commit-msg is used by hook id: check-message
default_install_hook_types: [pre-commit, prepare-commit-msg]
# commit-msg is used by hook id: check-message
default_install_hook_types: [pre-commit, commit-msg]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
args: [--message]
pass_filenames: true
language: python
stages: [commit-msg, prepare-commit-msg]
stages: [commit-msg]
- id: check-branch
name: check branch naming
description: ensures branch naming to match regex
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ We appreciate your contributions to make Commit Check even better!
### Debug commit-check pre-commit hook

```bash
pre-commit try-repo ./../commit-check/ check-message --verbose --hook-stage prepare-commit-msg --commit-msg-filename .git/COMMIT_EDITMSG
pre-commit try-repo ./../commit-check/ check-message --verbose --hook-stage commit-msg --commit-msg-filename .git/COMMIT_EDITMSG
```

### Debug commit-check wheel package
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Running as pre-commit hook
- repo: https://github.com/commit-check/commit-check
rev: the tag or revision
hooks: # support hooks
- id: check-message # requires prepare-commit-msg hook
- id: check-message # requires commit-msg hook
- id: check-branch
- id: check-author-name
- id: check-author-email
Expand Down
Loading