diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 2a3a08848..af5a80b97 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -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 @@ -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