MCPcopy Create free account
hub / github.com/FastLED/FastLED / _is_excluded

Function _is_excluded

ci/lint_python/subprocess_capture_checker.py:131–137  ·  view source on GitHub ↗

Return True if any component of path matches an exclude pattern.

(path: Path, exclude_parts: list[str])

Source from the content-addressed store, hash-verified

129
130
131def _is_excluded(path: Path, exclude_parts: list[str]) -> bool:
132 """Return True if any component of path matches an exclude pattern."""
133 path_str = path.as_posix()
134 for exc in exclude_parts:
135 if exc in path_str:
136 return True
137 return False
138
139
140def main(argv: list[str] | None = None) -> int:

Callers 1

collect_python_filesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected