mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Simplify the install and uninstall commands and improve tests.
This commit is contained in:
parent
48bbc68b35
commit
ecdacd474b
7 changed files with 82 additions and 52 deletions
|
|
@ -40,3 +40,7 @@ class Runner(object):
|
|||
"""Returns a tuple of the configured repositories."""
|
||||
config = load_config(self.config_file_path)
|
||||
return tuple(map(Repository, config))
|
||||
|
||||
@cached_property
|
||||
def pre_commit_path(self):
|
||||
return os.path.join(self.git_root, '.git/hooks/pre-commit')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue