hooks: Run "pre-push" by default
This commit is contained in:
parent
7ccdd4c810
commit
11cbc2e515
|
|
@ -213,7 +213,6 @@
|
||||||
"grep-${word}"
|
"grep-${word}"
|
||||||
"! ${lib.getExe pkgs.ripgrep} --context=3 --fixed-strings '${word}' $@");
|
"! ${lib.getExe pkgs.ripgrep} --context=3 --fixed-strings '${word}' $@");
|
||||||
name = "Avoid '${word}' in '${files}'";
|
name = "Avoid '${word}' in '${files}'";
|
||||||
stages = ["pre-commit" "pre-push"];
|
|
||||||
pass_filenames = true;
|
pass_filenames = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -221,6 +220,10 @@
|
||||||
inputs.git-hooks.lib.${system}.run {
|
inputs.git-hooks.lib.${system}.run {
|
||||||
src = ./.;
|
src = ./.;
|
||||||
settings.rust.check.cargoDeps = pkgs.rustPlatform.importCargoLock {lockFile = ./Cargo.lock;};
|
settings.rust.check.cargoDeps = pkgs.rustPlatform.importCargoLock {lockFile = ./Cargo.lock;};
|
||||||
|
default_stages = [
|
||||||
|
"pre-commit"
|
||||||
|
"pre-push"
|
||||||
|
];
|
||||||
hooks =
|
hooks =
|
||||||
{
|
{
|
||||||
alejandra.enable = true;
|
alejandra.enable = true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue