mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Implement fail_fast.
This commit is contained in:
parent
94dde26603
commit
898a3ea1bb
4 changed files with 25 additions and 3 deletions
|
|
@ -37,10 +37,14 @@ class Runner(object):
|
|||
def config_file_path(self):
|
||||
return os.path.join(self.git_root, self.config_file)
|
||||
|
||||
@cached_property
|
||||
def config(self):
|
||||
return load_config(self.config_file_path)
|
||||
|
||||
@cached_property
|
||||
def repositories(self):
|
||||
"""Returns a tuple of the configured repositories."""
|
||||
repos = load_config(self.config_file_path)['repos']
|
||||
repos = self.config['repos']
|
||||
repos = tuple(Repository.create(x, self.store) for x in repos)
|
||||
for repo in repos:
|
||||
repo.require_installed()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue