flake: Run statix hook only on staged files
This commit is contained in:
parent
29e3f7d597
commit
cc7230d92f
1 changed files with 5 additions and 2 deletions
|
@ -202,14 +202,17 @@
|
|||
|
||||
};
|
||||
|
||||
perSystem = { inputs', pkgs, config, ... }: {
|
||||
perSystem = { inputs', pkgs, config, lib, ... }: {
|
||||
|
||||
pre-commit = {
|
||||
settings = {
|
||||
hooks = {
|
||||
nixpkgs-fmt.enable = true;
|
||||
deadnix.enable = true;
|
||||
statix.enable = true;
|
||||
statix = {
|
||||
enable = true;
|
||||
pass_filenames = lib.mkForce true;
|
||||
};
|
||||
black.enable = true;
|
||||
shellcheck = {
|
||||
enable = true;
|
||||
|
|
Loading…
Reference in a new issue