-
Notifications
You must be signed in to change notification settings - Fork 1
/
pre-commit.nix
39 lines (36 loc) · 991 Bytes
/
pre-commit.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ inputs, ... }: {
imports = [
inputs.pre-commit-hooks.flakeModule
];
perSystem = { config, ... }:
{
devShells.dev-pre-commit = config.pre-commit.devShell;
devShells.default = config.pre-commit.devShell;
pre-commit = {
settings = {
excludes = [
];
hooks = {
nixpkgs-fmt.enable = true;
deadnix.enable = true;
statix.enable = true;
cabal-fmt.enable = true;
fourmolu.enable = true;
shellcheck.enable = true;
hlint.enable = true;
typos.enable = true;
markdownlint.enable = true;
dhall-format.enable = true;
purty.enable = true;
};
settings = {
ormolu.cabalDefaultExtensions = true;
typos = {
config = builtins.readFile ./.typos.toml;
exclude = "fourmolu.yaml";
};
};
};
};
};
}