Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/pre-commit/pre-commit
/ _match
Function
_match
pre_commit/yaml_rewrite.py:44–45 ·
view source on GitHub ↗
(gen: Iterable[Node], m: _Matcher)
Source
from the content-addressed store, hash-verified
42
43
44
def
_match(gen: Iterable[Node], m: _Matcher) -> Iterable[Node]:
45
return
(n
for
src in gen
for
n in m.match(src))
46
47
48
def
match(n: Node, matcher: tuple[_Matcher, ...]) -> Generator[ScalarNode]:
Callers
1
match
Function · 0.85
Calls
1
match
Method · 0.45
Tested by
no test coverage detected