Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
14 lines
511 B
Diff
14 lines
511 B
Diff
diff --git a/pre_commit/languages/pygrep.py b/pre_commit/languages/pygrep.py
|
|
index ec55560..44e08a1 100644
|
|
--- a/pre_commit/languages/pygrep.py
|
|
+++ b/pre_commit/languages/pygrep.py
|
|
@@ -98,7 +98,7 @@ def run_hook(
|
|
color: bool,
|
|
) -> tuple[int, bytes]:
|
|
cmd = (sys.executable, '-m', __name__, *args, entry)
|
|
- return xargs(cmd, file_args, color=color)
|
|
+ return xargs(cmd, file_args, color=color, env={ "PYTHONPATH": ':'.join(sys.path) })
|
|
|
|
|
|
def main(argv: Sequence[str] | None = None) -> int:
|