Remove legacy 'hooks.yaml' file support

This commit is contained in:
Anthony Sottile 2017-07-09 10:19:42 -07:00
parent 7aeb4fe0f7
commit 86d9ca053b
8 changed files with 3 additions and 76 deletions

View file

@ -79,11 +79,8 @@ def config_with_local_hooks():
))
def make_config_from_repo(
repo_path, sha=None, hooks=None, check=True, legacy=False,
):
filename = C.MANIFEST_FILE_LEGACY if legacy else C.MANIFEST_FILE
manifest = load_manifest(os.path.join(repo_path, filename))
def make_config_from_repo(repo_path, sha=None, hooks=None, check=True):
manifest = load_manifest(os.path.join(repo_path, C.MANIFEST_FILE))
config = OrderedDict((
('repo', repo_path),
('sha', sha or get_head_sha(repo_path)),

View file

@ -1,5 +0,0 @@
- id: system-hook-with-spaces
name: System hook with spaces
entry: bash -c 'echo "Hello World"'
language: system
files: \.sh$