getters# import compwa_policy.utilities.precommit.getters find_repo(config: PrecommitConfig, search_pattern: str) → Repo | None[source]# Find pre-commit repo definition in pre-commit config. find_repo_with_index(config: PrecommitConfig, search_pattern: str) → tuple[int, Repo] | None[source]# Find pre-commit repo definition and its index in pre-commit config.