fix(shell): Run linters at pre-push
This commit is contained in:
parent
39623a8802
commit
cfa14a6aae
1 changed files with 17 additions and 5 deletions
22
default.nix
22
default.nix
|
@ -9,13 +9,25 @@ let
|
||||||
|
|
||||||
hooks = {
|
hooks = {
|
||||||
# Python hooks
|
# Python hooks
|
||||||
ruff.enable = true;
|
black = {
|
||||||
black.enable = true;
|
enable = true;
|
||||||
isort.enable = true;
|
stages = [ "pre-push" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
isort = {
|
||||||
|
enable = true;
|
||||||
|
stages = [ "pre-push" ];
|
||||||
|
};
|
||||||
|
|
||||||
# Nix Hooks
|
# Nix Hooks
|
||||||
statix.enable = true;
|
statix = {
|
||||||
deadnix.enable = true;
|
enable = true;
|
||||||
|
stages = [ "pre-push" ];
|
||||||
|
};
|
||||||
|
deadnix = {
|
||||||
|
enable = true;
|
||||||
|
stages = [ "pre-push" ];
|
||||||
|
};
|
||||||
|
|
||||||
# Misc Hooks
|
# Misc Hooks
|
||||||
commitizen.enable = true;
|
commitizen.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue