nix/lib/templates/rust/nix/checks.nix
Daniel Flanagan d21df887fe
Some checks failed
/ check (push) Failing after 9s
Format
2025-02-14 13:31:18 -06:00

26 lines
512 B
Nix

{
pkgs,
git-hooks,
...
}:
{
git-hooks = git-hooks.lib.${pkgs.system}.run {
src = ./..;
hooks = {
alejandra.enable = true;
cargo-check.enable = true;
convco.enable = true;
cargo-test = {
enable = true;
name = "cargo-test";
entry = "cargo test";
# types = ["rust"];
# language = "rust";
pass_filenames = false;
stages = [ "pre-commit" ];
};
clippy.enable = true;
rustfmt.enable = true;
};
};
}