MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / filenames_for_hook

Method filenames_for_hook

pre_commit/commands/run.py:100–110  ·  view source on GitHub ↗
(self, hook: Hook)

Source from the content-addressed store, hash-verified

98 yield filename
99
100 def filenames_for_hook(self, hook: Hook) -> Generator[str]:
101 return self.by_types(
102 filter_by_include_exclude(
103 self.filenames,
104 hook.files,
105 hook.exclude,
106 ),
107 hook.types,
108 hook.types_or,
109 hook.exclude_types,
110 )
111
112 @classmethod
113 def from_config(

Callers 2

_run_single_hookFunction · 0.80

Calls 2

by_typesMethod · 0.95

Tested by

no test coverage detected