feat: setup statix linter

This commit is contained in:
2026-02-22 12:02:26 +01:00
parent 0a6e024b78
commit e6cad243de
3 changed files with 13 additions and 1 deletions

View File

@@ -4,3 +4,11 @@ repos:
hooks:
- id: nixfmt-nix
args: [--, --check]
- repo: local
hooks:
- id: statix
name: statix
entry: statix check
language: system
files: \.nix$
pass_filenames: false

View File

@@ -111,7 +111,10 @@
formatter = pkgs.nixfmt-tree;
devShells.default = pkgs.mkShell {
packages = [ pkgs.pre-commit ];
packages = [
pkgs.pre-commit
pkgs.statix
];
};
}
);

1
statix.toml Normal file
View File

@@ -0,0 +1 @@
disabled = ["repeated_keys"]