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

Function get_env_patch

pre_commit/languages/coursier.py:65–69  ·  view source on GitHub ↗
(target_dir: str)

Source from the content-addressed store, hash-verified

63
64
65def get_env_patch(target_dir: str) -> PatchesT:
66 return (
67 ('PATH', (target_dir, os.pathsep, Var('PATH'))),
68 ('COURSIER_CACHE', os.path.join(target_dir, '.cs-cache')),
69 )
70
71
72@contextlib.contextmanager

Callers 1

in_envFunction · 0.70

Calls 1

VarClass · 0.90

Tested by

no test coverage detected