pre-commit: add deadnix check

This commit is contained in:
Felix Buehler 2023-11-07 22:51:21 +01:00
parent 46881de8eb
commit a4b8c2b8da

View file

@ -68,18 +68,22 @@
# enable pre-commit checks
pre-commit.settings = {
hooks = {
shellcheck.enable = true;
deadnix.enable = true;
markdownlint.enable = true;
nixpkgs-fmt.enable = true;
shellcheck.enable = true;
typos = {
enable = true;
excludes = [ "secrets\\.yaml" ];
};
markdownlint.enable = true;
yamllint = {
enable = true;
excludes = [ "secrets\\.yaml" ];
};
};
settings = {
deadnix.noLambdaPatternNames = true;
};
};
devShells.default = pkgs.mkShellNoCC {
@ -88,8 +92,9 @@
inputs'.deploy-rs.packages.deploy-rs
inputs'.disko.packages.disko
# formatters
pkgs.shellcheck
pkgs.deadnix
pkgs.nixpkgs-fmt
pkgs.shellcheck
pkgs.typos
];
shellHook = ''