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