enable some checks in pre-commit hooks
This commit is contained in:
parent
c54e115c5f
commit
5a2c855381
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,5 @@
|
|||||||
/result
|
/result
|
||||||
/.direnv
|
/.direnv
|
||||||
|
|
||||||
|
# nix managed
|
||||||
|
/.pre-commit-config.yaml
|
||||||
|
14
flake.nix
14
flake.nix
@ -225,11 +225,11 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
checks =
|
checks =
|
||||||
(builtins.mapAttrs (_system: deployLib:
|
builtins.mapAttrs (
|
||||||
deployLib.deployChecks self.deploy)
|
system: deployLib:
|
||||||
deploy-rs.lib)
|
deployLib.deployChecks self.deploy
|
||||||
// {
|
// {
|
||||||
x86_64-linux.pre-commit-check = inputs.pre-commit-hooks.lib.x86_64-linux.run {
|
pre-commit-check = inputs.pre-commit-hooks.lib.${system}.run {
|
||||||
src = ./.;
|
src = ./.;
|
||||||
hooks = {
|
hooks = {
|
||||||
alejandra.enable = true;
|
alejandra.enable = true;
|
||||||
@ -237,7 +237,9 @@
|
|||||||
#statix.enable = true;
|
#statix.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
)
|
||||||
|
deploy-rs.lib;
|
||||||
}
|
}
|
||||||
// flake-utils.lib.eachDefaultSystem (system: let
|
// flake-utils.lib.eachDefaultSystem (system: let
|
||||||
pkgs = import nixpkgs {inherit system;};
|
pkgs = import nixpkgs {inherit system;};
|
||||||
@ -251,7 +253,7 @@
|
|||||||
|
|
||||||
agenix.packages.${system}.agenix
|
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;
|
formatter = pkgs.alejandra;
|
||||||
|
Loading…
Reference in New Issue
Block a user