Skip to content

Commit 79f59c2

Browse files
author
David Arnold
committed
feat: support specifying stages, close #49
1 parent 16d4ca0 commit 79f59c2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

modules/pre-commit.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@ in
286286
];
287287
} // lib.optionalAttrs (cfg.excludes != []) {
288288
exclude = mergeExcludes cfg.excludes;
289+
} // lib.optionalAttrs (cfg.default_stages != []){
290+
default_stages = cfg.default_Stages;
289291
};
290292

291293
pre-commit.installationScript =

nix/run.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ builtinStuff@{ pkgs, tools, pre-commit, git, runCommand, writeText, writeScript,
55
, excludes ? []
66
, tools ? {}
77
, settings ? {}
8+
, default_stages ? []
89
}:
910

1011
let
@@ -32,7 +33,7 @@ let
3233
_module.args.pkgs = pkgs;
3334
pre-commit =
3435
{
35-
inherit hooks excludes settings;
36+
inherit hooks excludes settings default_stages;
3637
tools = builtinStuff.tools // tools;
3738
};
3839
};

0 commit comments

Comments
 (0)