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

Function in_env

pre_commit/languages/r.py:131–134  ·  view source on GitHub ↗
(prefix: Prefix, version: str)

Source from the content-addressed store, hash-verified

129
130@contextlib.contextmanager
131def in_env(prefix: Prefix, version: str) -> Generator[None]:
132 envdir = lang_base.environment_dir(prefix, ENVIRONMENT_DIR, version)
133 with envcontext(get_env_patch(envdir)):
134 yield
135
136
137def _prefix_if_file_entry(

Callers 1

_execute_rFunction · 0.70

Calls 2

envcontextFunction · 0.90
get_env_patchFunction · 0.70

Tested by

no test coverage detected