mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Separate store from runner
This commit is contained in:
parent
6d683a5fac
commit
c01ffc83f8
15 changed files with 228 additions and 347 deletions
|
|
@ -282,3 +282,7 @@ class MetaRepository(LocalRepository):
|
|||
(hook['id'], _hook(self.manifest_hooks[hook['id']], hook))
|
||||
for hook in self.repo_config['hooks']
|
||||
)
|
||||
|
||||
|
||||
def repositories(config, store):
|
||||
return tuple(Repository.create(x, store) for x in config['repos'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue