We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29eed70 commit 8afbe87Copy full SHA for 8afbe87
modules/pre-commit.nix
@@ -17,6 +17,8 @@ let
17
inherit (pkgs) runCommand writeText git;
18
19
cfg = config.pre-commit;
20
+ # TODO: add per-hook stages to install here
21
+ install_stages = cfg.default_stages;
22
23
hookType =
24
types.submodule (
@@ -335,8 +337,8 @@ in
335
337
pre-commit uninstall -t $hook
336
338
done
339
# Add hooks for configured stages (only) ...
- if [ ! -z "${concatStringsSep " " cfg.default_stages}" ]; then
- for stage in ${concatStringsSep " " cfg.default_stages}; do
340
+ if [ ! -z "${concatStringsSep " " install_stages}" ]; then
341
+ for stage in ${concatStringsSep " " install_stages}; do
342
if [[ "$stage" == "manual" ]]; then
343
continue
344
fi
0 commit comments