Merge pull request #553 from pre-commit/remove_legacy_hooks_yaml_support

Remove legacy 'hooks.yaml' file support
This commit is contained in:
Anthony Sottile 2017-07-26 05:50:41 -07:00 committed by GitHub
commit 8f86f8f156
8 changed files with 3 additions and 76 deletions

View file

@ -80,11 +80,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$