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:
Anthony Sottile 2017-10-07 15:13:53 -07:00
parent e8641ee0a3
commit 2c88791a7f
15 changed files with 254 additions and 110 deletions

View file

@ -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):