mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Merge pull request #553 from pre-commit/remove_legacy_hooks_yaml_support
Remove legacy 'hooks.yaml' file support
This commit is contained in:
commit
8f86f8f156
8 changed files with 3 additions and 76 deletions
|
|
@ -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)),
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
- id: system-hook-with-spaces
|
||||
name: System hook with spaces
|
||||
entry: bash -c 'echo "Hello World"'
|
||||
language: system
|
||||
files: \.sh$
|
||||
Loading…
Add table
Add a link
Reference in a new issue