Implement check-files-matches-any meta hook

This commit is contained in:
Paul Hooijenga 2017-10-25 09:35:39 +02:00
parent 8df11ee7aa
commit 8a0dd01c7e
3 changed files with 76 additions and 0 deletions

View file

@ -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