mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Better project structure
This commit is contained in:
parent
f31f092f9b
commit
1746a97e24
52 changed files with 221 additions and 189 deletions
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import os
|
||||
import os.path
|
||||
|
||||
|
|
@ -40,7 +39,7 @@ class Runner(object):
|
|||
def repositories(self):
|
||||
"""Returns a tuple of the configured repositories."""
|
||||
config = load_config(self.config_file_path)
|
||||
return tuple(map(Repository, config))
|
||||
return tuple(Repository(x) for x in config)
|
||||
|
||||
@cached_property
|
||||
def pre_commit_path(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue