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/haskell.py:21–23 ·
view source on GitHub ↗
(target_dir: str)
Source
from the content-addressed store, hash-verified
19
20
21
def
get_env_patch(target_dir: str) -> PatchesT:
22
bin_path = os.path.join(target_dir,
'bin'
)
23
return
((
'PATH'
, (bin_path, os.pathsep, Var(
'PATH'
))),)
24
25
26
@contextlib.contextmanager
Callers
1
in_env
Function · 0.70
Calls
1
Var
Class · 0.90
Tested by
no test coverage detected