Skip to content

Commit

Permalink
git-hooks: update task order setup
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Nov 23, 2024
1 parent 25268a1 commit 4726277
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/modules/integrations/git-hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@ in
packages = lib.mkAfter ([ config.git-hooks.package ] ++ (config.git-hooks.enabledPackages or [ ]));
tasks = {
# TODO: split installation script into status + exec
"devenv:git-hooks:install".exec = config.git-hooks.installationScript;
"devenv:git-hooks:run".exec = "pre-commit run -a";
"devenv:enterShell".after = [ "devenv:git-hooks:install" ];
"devenv:enterTest".after = [ "devenv:git-hooks:run" ];
"devenv:git-hooks:install" = {
exec = config.git-hooks.installationScript;
before = [ "devenv:enterShell" ];
};
"devenv:git-hooks:run" = {
exec = "pre-commit run -a";
before = [ "devenv:enterShell" ];
};
};
};
}

0 comments on commit 4726277

Please sign in to comment.