2021-05-18 14:28:31 +00:00
|
|
|
let
|
2022-08-11 09:45:49 +00:00
|
|
|
sources = import ./nix/sources.nix;
|
|
|
|
nix-pre-commit-hooks = import "${sources."pre-commit-hooks.nix"}/nix" {nixpkgs = sources.nixos-stable;};
|
2022-03-08 01:42:46 +00:00
|
|
|
in {
|
2021-05-18 14:28:31 +00:00
|
|
|
pre-commit-check = nix-pre-commit-hooks.run {
|
|
|
|
src = ./.;
|
|
|
|
hooks = {
|
|
|
|
hlint.enable = true;
|
2022-03-08 01:42:46 +00:00
|
|
|
alejandra.enable = true;
|
2022-03-08 04:53:07 +00:00
|
|
|
nix-linter.enable = false; # Too many false positives for now
|
2022-03-08 02:19:09 +00:00
|
|
|
statix.enable = true;
|
2021-05-18 14:28:31 +00:00
|
|
|
fourmolu.enable = true;
|
2022-03-08 01:42:46 +00:00
|
|
|
cabal-fmt.enable = true;
|
|
|
|
shellcheck.enable = true;
|
2021-05-18 14:28:31 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|