MCPcopy 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
44def _match(gen: Iterable[Node], m: _Matcher) -> Iterable[Node]:
45 return (n for src in gen for n in m.match(src))
46
47
48def match(n: Node, matcher: tuple[_Matcher, ...]) -> Generator[ScalarNode]:

Callers 1

matchFunction · 0.85

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected