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

Function _repository_hooks

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

Source from the content-addressed store, hash-verified

201
202
203def _repository_hooks(
204 repo_config: dict[str, Any],
205 store: Store,
206 root_config: dict[str, Any],
207) -> tuple[Hook, ...]:
208 if repo_config['repo'] in {LOCAL, META}:
209 return _non_cloned_repository_hooks(repo_config, store, root_config)
210 else:
211 return _cloned_repository_hooks(repo_config, store, root_config)
212
213
214def install_hook_envs(hooks: Sequence[Hook], store: Store) -> None:

Callers 1

all_hooksFunction · 0.85

Calls 2

_cloned_repository_hooksFunction · 0.85

Tested by

no test coverage detected