build: fail-fast pre-commit hooks for faster iteration
This commit is contained in:
parent
67f218495f
commit
f1548d7e7a
1 changed files with 9 additions and 0 deletions
|
|
@ -181,6 +181,11 @@
|
||||||
package = config.treefmt.build.wrapper;
|
package = config.treefmt.build.wrapper;
|
||||||
pass_filenames = false;
|
pass_filenames = false;
|
||||||
stages = [ "pre-commit" ];
|
stages = [ "pre-commit" ];
|
||||||
|
fail_fast = true;
|
||||||
|
before = [
|
||||||
|
"clippy"
|
||||||
|
"cargo-test"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
clippy = {
|
clippy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -190,6 +195,10 @@
|
||||||
clippy = rust;
|
clippy = rust;
|
||||||
};
|
};
|
||||||
settings.extraArgs = "--allow-dirty --fix";
|
settings.extraArgs = "--allow-dirty --fix";
|
||||||
|
fail_fast = true;
|
||||||
|
before = [
|
||||||
|
"cargo-test"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
cargo-test = {
|
cargo-test = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue