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

Function in_env

pre_commit/languages/node.py:62–65  ·  view source on GitHub ↗
(prefix: Prefix, version: str)

Source from the content-addressed store, hash-verified

60
61@contextlib.contextmanager
62def in_env(prefix: Prefix, version: str) -> Generator[None]:
63 envdir = lang_base.environment_dir(prefix, ENVIRONMENT_DIR, version)
64 with envcontext(get_env_patch(envdir)):
65 yield
66
67
68def health_check(prefix: Prefix, version: str) -> str | None:

Callers 2

health_checkFunction · 0.70
install_environmentFunction · 0.70

Calls 2

envcontextFunction · 0.90
get_env_patchFunction · 0.70

Tested by

no test coverage detected