diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index c14263458..650f0aced 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -19,7 +19,7 @@ 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] + args: [--rev-range, "$PRE_COMMIT_TO_REF $PRE_COMMIT_FROM_REF"] always_run: true pass_filenames: false language: python