mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Implement check-files-matches-any meta hook
This commit is contained in:
parent
8df11ee7aa
commit
8a0dd01c7e
3 changed files with 76 additions and 0 deletions
|
|
@ -259,6 +259,13 @@ class MetaRepository(LocalRepository):
|
|||
'entry': pipes.quote(sys.executable),
|
||||
'args': ['-m', 'pre_commit.meta_hooks.check_useless_excludes'],
|
||||
},
|
||||
'check-files-matches-any': {
|
||||
'name': 'Check hooks match any files',
|
||||
'files': '.pre-commit-config.yaml',
|
||||
'language': 'system',
|
||||
'entry': pipes.quote(sys.executable),
|
||||
'args': ['-m', 'pre_commit.meta_hooks.check_files_matches_any'],
|
||||
},
|
||||
}
|
||||
|
||||
@cached_property
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue