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

Function all_hooks

pre_commit/repository.py:232–237  ·  view source on GitHub ↗
(root_config: dict[str, Any], store: Store)

Source from the content-addressed store, hash-verified

230
231
232def all_hooks(root_config: dict[str, Any], store: Store) -> tuple[Hook, ...]:
233 return tuple(
234 hook
235 for repo in root_config['repos']
236 for hook in _repository_hooks(repo, store, root_config)
237 )

Callers 8

runFunction · 0.90
install_hooksFunction · 0.90
_get_hook_no_installFunction · 0.90
test_default_stagesFunction · 0.90

Calls 1

_repository_hooksFunction · 0.85

Tested by 5

_get_hook_no_installFunction · 0.72
test_default_stagesFunction · 0.72