mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-18 08:34:41 +04:00
Add pre-commit try-repo
`try-repo` is useful for: - Trying out a remote hook repository without needing to configure it. - Testing a hook repository while developing it.
This commit is contained in:
parent
e8641ee0a3
commit
2c88791a7f
15 changed files with 254 additions and 110 deletions
|
|
@ -14,9 +14,8 @@ logger = logging.getLogger('pre_commit')
|
|||
|
||||
|
||||
class Manifest(object):
|
||||
def __init__(self, repo_path, repo_url):
|
||||
def __init__(self, repo_path):
|
||||
self.repo_path = repo_path
|
||||
self.repo_url = repo_url
|
||||
|
||||
@cached_property
|
||||
def manifest_contents(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue