MCPcopy
hub / github.com/pre-commit/pre-commit / install_hooks

Function install_hooks

pre_commit/commands/install_uninstall.py:144–146  ·  view source on GitHub ↗
(config_file: str, store: Store)

Source from the content-addressed store, hash-verified

142
143
144def install_hooks(config_file: str, store: Store) -> int:
145 install_hook_envs(all_hooks(load_config(config_file), store), store)
146 return 0
147
148
149def _uninstall_hook_script(hook_type: str) -> None:

Callers 5

mainFunction · 0.90
test_gcFunction · 0.90
installFunction · 0.85

Calls 2

install_hook_envsFunction · 0.90
all_hooksFunction · 0.90

Tested by 3

test_gcFunction · 0.72