mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Install hooks before attempting to run anything
This commit is contained in:
parent
76ffb3665a
commit
31a3b2ecb6
3 changed files with 7 additions and 22 deletions
|
|
@ -37,7 +37,10 @@ class Runner(object):
|
|||
def repositories(self):
|
||||
"""Returns a tuple of the configured repositories."""
|
||||
config = load_config(self.config_file_path)
|
||||
return tuple(Repository.create(x, self.store) for x in config)
|
||||
repositories = tuple(Repository.create(x, self.store) for x in config)
|
||||
for repository in repositories:
|
||||
repository.require_installed()
|
||||
return repositories
|
||||
|
||||
@cached_property
|
||||
def pre_commit_path(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue