autodocodec/nix/pre-commit.nix
Tom Sydney Kerckhove 9b57c76cd8 trying a thing
2021-10-20 17:59:50 +02:00

22 lines
376 B
Nix

{ sources ? import ./sources.nix }:
let
pre-commit-hooks = import sources.pre-commit-hooks;
in
{
run = pre-commit-hooks.run {
src = ../.;
hooks = {
hlint.enable = true;
hpack.enable = true;
nixpkgs-fmt.enable = true;
ormolu.enable = true;
};
};
tools = with pre-commit-hooks; [
hlint
hpack
nixpkgs-fmt
ormolu
];
}