hooks: Run "pre-push" by default

This commit is contained in:
Lorenz Leutgeb 2025-11-01 11:56:14 +01:00 committed by Fintan Halpenny
parent 7ccdd4c810
commit 11cbc2e515
1 changed files with 4 additions and 1 deletions

View File

@ -213,7 +213,6 @@
"grep-${word}"
"! ${lib.getExe pkgs.ripgrep} --context=3 --fixed-strings '${word}' $@");
name = "Avoid '${word}' in '${files}'";
stages = ["pre-commit" "pre-push"];
pass_filenames = true;
};
};
@ -221,6 +220,10 @@
inputs.git-hooks.lib.${system}.run {
src = ./.;
settings.rust.check.cargoDeps = pkgs.rustPlatform.importCargoLock {lockFile = ./Cargo.lock;};
default_stages = [
"pre-commit"
"pre-push"
];
hooks =
{
alejandra.enable = true;