mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Default local / meta through cfgv
This commit is contained in:
parent
46ae88c1f0
commit
fc84567923
11 changed files with 109 additions and 112 deletions
|
|
@ -5,18 +5,9 @@ from pre_commit import git
|
|||
from pre_commit.clientlib import load_config
|
||||
from pre_commit.commands.run import _filter_by_include_exclude
|
||||
from pre_commit.commands.run import _filter_by_types
|
||||
from pre_commit.meta_hooks.helpers import make_meta_entry
|
||||
from pre_commit.repository import all_hooks
|
||||
from pre_commit.store import Store
|
||||
|
||||
HOOK_DICT = {
|
||||
'id': 'check-hooks-apply',
|
||||
'name': 'Check hooks apply to the repository',
|
||||
'files': C.CONFIG_FILE,
|
||||
'language': 'system',
|
||||
'entry': make_meta_entry(__name__),
|
||||
}
|
||||
|
||||
|
||||
def check_all_hooks_match_files(config_file):
|
||||
files = git.get_all_files()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue