Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
58
def
_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
64
def
_test_hook_repo(
Callers
14
_test_hook_repo
Function · 0.85
test_additional_dependencies_roll_forward
Function · 0.85
test_repository_state_compatibility
Function · 0.85
test_unknown_keys
Function · 0.85
test_reinstall
Function · 0.85
test_invalidated_virtualenv
Function · 0.85
test_really_long_file_paths
Function · 0.85
test_config_overrides_repo_specifics
Function · 0.85
test_tags_on_repositories
Function · 0.85
test_local_python_repo
Function · 0.85
test_hook_id_not_present
Function · 0.85
test_manifest_hooks
Function · 0.85
Calls
2
install_hook_envs
Function · 0.90
_get_hook_no_install
Function · 0.85
Tested by
no test coverage detected