Rename check-files-matches-any to check-hooks-apply · precommit/pre-commit@e99813f · GitHub
Skip to content

Commit e99813f

Browse files
committed
Rename check-files-matches-any to check-hooks-apply
1 parent f098ec3 commit e99813f

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
File renamed without changes.

pre_commit/repository.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ class MetaRepository(LocalRepository):
255255
@cached_property
256256
def manifest_hooks(self):
257257
# The hooks are imported here to prevent circular imports.
258-
from pre_commit.meta_hooks import check_files_matches_any
258+
from pre_commit.meta_hooks import check_hooks_apply
259259
from pre_commit.meta_hooks import check_useless_excludes
260260

261261
def _make_entry(mod):
@@ -267,11 +267,11 @@ def _make_entry(mod):
267267

268268
meta_hooks = [
269269
{
270-
'id': 'check-files-matches-any',
271-
'name': 'Check hooks match any files',
270+
'id': 'check-hooks-apply',
271+
'name': 'Check hooks apply to the repository',
272272
'files': '.pre-commit-config.yaml',
273273
'language': 'system',
274-
'entry': _make_entry(check_files_matches_any),
274+
'entry': _make_entry(check_hooks_apply),
275275
},
276276
{
277277
'id': 'check-useless-excludes',

tests/meta_hooks/hook_matches_any_test.py renamed to tests/meta_hooks/check_hooks_apply_test.py

Lines changed: 6 additions & 6 deletions

0 commit comments

Comments
 (0)