From b79a3aec7ca1d429317626890c2e6f60a9678340 Mon Sep 17 00:00:00 2001 From: Gaby Roch Date: Wed, 21 Jan 2026 14:30:09 +0100 Subject: [PATCH 1/2] fix(pre-commit-hooks): remove magic constants on pre-push hook - Remove static reference to origin (work with other name) - now work when remote/HEAD isn't setted (e.g. on `git init .; git remote add origin git@...`) --- .pre-commit-hooks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index c14263458..db90b995f 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 From 9a1e4458b204b8fca5e059d200a537ccfa22afdd Mon Sep 17 00:00:00 2001 From: Gaby Roch Date: Thu, 22 Jan 2026 08:10:57 +0100 Subject: [PATCH 2/2] fix(pre-commit-hooks): some `"` consistency in the file --- .pre-commit-hooks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index db90b995f..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", "$PRE_COMMIT_TO_REF $PRE_COMMIT_FROM_REF"] + args: [--rev-range, "$PRE_COMMIT_TO_REF $PRE_COMMIT_FROM_REF"] always_run: true pass_filenames: false language: python