mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
add support for top-level map manifest
This commit is contained in:
parent
9c7ea88ab9
commit
7cad9ec27f
10 changed files with 156 additions and 61 deletions
|
|
@ -101,7 +101,7 @@ def make_config_from_repo(repo_path, rev=None, hooks=None, check=True):
|
|||
config = {
|
||||
'repo': f'file://{repo_path}',
|
||||
'rev': rev or git.head_rev(repo_path),
|
||||
'hooks': hooks or [{'id': hook['id']} for hook in manifest],
|
||||
'hooks': hooks or [{'id': hook_id} for hook_id in manifest['hooks']],
|
||||
}
|
||||
|
||||
if check:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue