mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Remove legacy 'hooks.yaml' file support
This commit is contained in:
parent
7aeb4fe0f7
commit
86d9ca053b
8 changed files with 3 additions and 76 deletions
|
|
@ -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)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue