Skip to content

Commit 25d4946

Browse files
authored
Merge pull request #564 from willfish/configPath-testing
Exposes configPath to the run wrapper
2 parents 4a709a8 + 3adca9e commit 25d4946

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nix/run.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ builtinStuff@{ pkgs, tools, isFlakes, pre-commit, git, runCommand, writeText, wr
88
, default_stages ? [ "pre-commit" ]
99
, addGcRoot ? true
1010
, imports ? [ ]
11+
, configPath ? ".pre-commit-config.yaml"
1112
}:
1213
let
1314
project =
@@ -20,7 +21,7 @@ let
2021
{
2122
_module.args.pkgs = pkgs;
2223
_module.args.gitignore-nix-src = gitignore-nix-src;
23-
inherit hooks excludes default_stages settings addGcRoot;
24+
inherit hooks excludes default_stages settings addGcRoot configPath;
2425
tools = builtinStuff.tools // tools;
2526
package = pre-commit;
2627
} // (if isFlakes

0 commit comments

Comments
 (0)