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

Function get_env_patch

pre_commit/languages/python.py:55–61  ·  view source on GitHub ↗
(venv: str)

Source from the content-addressed store, hash-verified

53
54
55def get_env_patch(venv: str) -> PatchesT:
56 return (
57 ('PIP_DISABLE_PIP_VERSION_CHECK', '1'),
58 ('PYTHONHOME', UNSET),
59 ('VIRTUAL_ENV', venv),
60 ('PATH', (bin_dir(venv), os.pathsep, Var('PATH'))),
61 )
62
63
64def _find_by_py_launcher(

Callers 1

in_envFunction · 0.70

Calls 2

VarClass · 0.90
bin_dirFunction · 0.85

Tested by

no test coverage detected