Skip to content

Commit 0f3c27c

Browse files
AdrianDCLee-W
authored andcommitted
fix(pre-commit-hooks)!: move 'check' to 'args' for global options
Details: 'args: [...]' is not able to access '-nr NO_RAISE' global arguments for example from a arguments configuration --- Signed-off-by: Adrian DC <[email protected]>
1 parent a368e75 commit 0f3c27c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.pre-commit-hooks.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
Check whether the current commit message follows committing rules. Allow
55
empty commit messages by default, because they typically indicate to Git
66
that the commit should be aborted.
7-
entry: cz check
8-
args: [--allow-abort, --commit-msg-file]
7+
entry: cz
8+
args: [check, --allow-abort, --commit-msg-file]
99
stages: [commit-msg]
1010
language: python
1111
language_version: python3
@@ -18,8 +18,8 @@
1818
default branch on the origin repository. Useful for checking messages after
1919
the fact (e.g., pre-push or in CI) without an expensive check of the entire
2020
repository history.
21-
entry: cz check
22-
args: [--rev-range, origin/HEAD..HEAD]
21+
entry: cz
22+
args: [check, --rev-range, origin/HEAD..HEAD]
2323
always_run: true
2424
pass_filenames: false
2525
language: python

0 commit comments

Comments
 (0)