MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / in_env

Method in_env

pre_commit/lang_base.py:46–46  ·  view source on GitHub ↗
(self, prefix: Prefix, version: str)

Source from the content-addressed store, hash-verified

44
45 # modify the environment for hook execution
46 def in_env(self, prefix: Prefix, version: str) -> ContextManager[None]: ...
47
48 # execute a hook and return the exit code and output
49 def run_hook(

Callers 4

_run_single_hookFunction · 0.80
run_languageFunction · 0.80

Calls

no outgoing calls