enable some checks in pre-commit hooks
This commit is contained in:
parent
c54e115c5f
commit
5a2c855381
|
@ -1,2 +1,5 @@
|
|||
/result
|
||||
/.direnv
|
||||
|
||||
# nix managed
|
||||
/.pre-commit-config.yaml
|
||||
|
|
30
flake.nix
30
flake.nix
|
@ -225,19 +225,21 @@
|
|||
};
|
||||
|
||||
checks =
|
||||
(builtins.mapAttrs (_system: deployLib:
|
||||
deployLib.deployChecks self.deploy)
|
||||
deploy-rs.lib)
|
||||
// {
|
||||
x86_64-linux.pre-commit-check = inputs.pre-commit-hooks.lib.x86_64-linux.run {
|
||||
src = ./.;
|
||||
hooks = {
|
||||
alejandra.enable = true;
|
||||
deadnix.enable = true;
|
||||
#statix.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
builtins.mapAttrs (
|
||||
system: deployLib:
|
||||
deployLib.deployChecks self.deploy
|
||||
// {
|
||||
pre-commit-check = inputs.pre-commit-hooks.lib.${system}.run {
|
||||
src = ./.;
|
||||
hooks = {
|
||||
alejandra.enable = true;
|
||||
deadnix.enable = true;
|
||||
#statix.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
)
|
||||
deploy-rs.lib;
|
||||
}
|
||||
// flake-utils.lib.eachDefaultSystem (system: let
|
||||
pkgs = import nixpkgs {inherit system;};
|
||||
|
@ -251,7 +253,7 @@
|
|||
|
||||
agenix.packages.${system}.agenix
|
||||
];
|
||||
inherit (inputs.self.checks.x86_64-linux.pre-commit-check) shellHook;
|
||||
inherit (inputs.self.checks.${system}.pre-commit-check) shellHook;
|
||||
};
|
||||
|
||||
formatter = pkgs.alejandra;
|
||||
|
|
Loading…
Reference in New Issue