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

Function _get_hook

tests/repository_test.py:58–61  ·  view source on GitHub ↗
(repo_config, store, hook_id)

Source from the content-addressed store, hash-verified

56
57
58def _get_hook(repo_config, store, hook_id):
59 hook = _get_hook_no_install(repo_config, store, hook_id)
60 install_hook_envs([hook], store)
61 return hook
62
63
64def _test_hook_repo(

Callers 14

_test_hook_repoFunction · 0.85
test_unknown_keysFunction · 0.85
test_reinstallFunction · 0.85
test_local_python_repoFunction · 0.85
test_hook_id_not_presentFunction · 0.85
test_manifest_hooksFunction · 0.85

Calls 2

install_hook_envsFunction · 0.90
_get_hook_no_installFunction · 0.85

Tested by

no test coverage detected