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 f35555d
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:git-hooks:install" ];
};
"devenv:git-hooks:run" = {
exec = "pre-commit run -a";
before = [ "devenv:git-hooks:run" ];
};
};
};
}

0 comments on commit f35555d

Please sign in to comment.