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 = {
|
||||
# Python hooks
|
||||
ruff.enable = true;
|
||||
black.enable = true;
|
||||
isort.enable = true;
|
||||
black = {
|
||||
enable = true;
|
||||
stages = [ "pre-push" ];
|
||||
};
|
||||
|
||||
isort = {
|
||||
enable = true;
|
||||
stages = [ "pre-push" ];
|
||||
};
|
||||
|
||||
# Nix Hooks
|
||||
statix.enable = true;
|
||||
deadnix.enable = true;
|
||||
statix = {
|
||||
enable = true;
|
||||
stages = [ "pre-push" ];
|
||||
};
|
||||
deadnix = {
|
||||
enable = true;
|
||||
stages = [ "pre-push" ];
|
||||
};
|
||||
|
||||
# Misc Hooks
|
||||
commitizen.enable = true;
|
||||
|
|
Loading…
Reference in a new issue