fix(shell): Run linters at pre-push

This commit is contained in:
Tom Hubrecht 2024-09-23 18:16:21 +02:00
parent 39623a8802
commit cfa14a6aae
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc

View file

@ -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;