Skip to content

Commit 1adaebc

Browse files
committed
ci: update git-hooks.nix flake and migrate push hook to pre-push
For a while when we run the git hooks, on push and commit, the following warning was displayed: ``` [WARNING] hook id `clang-format` uses deprecated stage names (push) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. [WARNING] hook id `clippy` uses deprecated stage names (push) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. [WARNING] hook id `nixfmt-rfc-style` uses deprecated stage names (push) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. [WARNING] hook id `rustfmt` uses deprecated stage names (push) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. [WARNING] top-level `default_stages` uses deprecated stage names (push) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. ``` tl;dr; the `push` stage was renamed to `pre-push` in pre-commit `4.0.0`. See also: - <https://github.com/pre-commit/pre-commit/releases/tag/v4.0.0> - <pre-commit/pre-commit#2732> - <pre-commit/pre-commit#3312>
1 parent 1e89f5c commit 1adaebc

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkgs/pre-commit-check/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pre-commit-hooks.lib.${system}.run {
1414
src = builtins.path { path = ./.; };
1515
default_stages = [
1616
"manual"
17-
"push"
17+
"pre-push"
1818
];
1919
hooks = {
2020
nixfmt-rfc-style = {

0 commit comments

Comments
 (0)