feat: setup statix linter
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
1
statix.toml
Normal file
@@ -0,0 +1 @@
|
||||
disabled = ["repeated_keys"]
|
||||
Reference in New Issue
Block a user