mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
pre-commit: add deadnix check
This commit is contained in:
parent
46881de8eb
commit
a4b8c2b8da
1 changed files with 8 additions and 3 deletions
11
flake.nix
11
flake.nix
|
@ -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 = ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue