Skip to content

Commit

Permalink
fix(pre-commit-hooks)!: move 'check' to 'args' for global options
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
AdrianDC committed Aug 25, 2024
1 parent 9f085a1 commit 2a129d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
Check whether the current commit message follows committing rules. Allow
empty commit messages by default, because they typically indicate to Git
that the commit should be aborted.
entry: cz check
args: [--allow-abort, --commit-msg-file]
entry: cz
args: [check, --allow-abort, --commit-msg-file]
stages: [commit-msg]
language: python
language_version: python3
Expand All @@ -18,8 +18,8 @@
default branch on the origin repository. Useful for checking messages after
the fact (e.g., pre-push or in CI) without an expensive check of the entire
repository history.
entry: cz check
args: [--rev-range, origin/HEAD..HEAD]
entry: cz
args: [check, --rev-range, origin/HEAD..HEAD]
always_run: true
pass_filenames: false
language: python
Expand Down

0 comments on commit 2a129d8

Please sign in to comment.