Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pre-commit/pre-commit
/ get_env_patch
Function
get_env_patch
pre_commit/languages/dart.py:25–28 ·
view source on GitHub ↗
(venv: str)
Source
from the content-addressed store, hash-verified
23
24
25
def
get_env_patch(venv: str) -> PatchesT:
26
return
(
27
(
'PATH'
, (os.path.join(venv,
'bin'
), os.pathsep, Var(
'PATH'
))),
28
)
29
30
31
@contextlib.contextmanager
Callers
1
in_env
Function · 0.70
Calls
1
Var
Class · 0.90
Tested by
no test coverage detected