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

Function _is_excluded

ci/lint_python/keyboard_interrupt_checker.py:269–275  ·  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

267
268
269def _is_excluded(path: Path, exclude_parts: list[str]) -> bool:
270 """Return True if any component of *path* matches an exclude pattern."""
271 path_str = path.as_posix()
272 for exc in exclude_parts:
273 if exc in path_str:
274 return True
275 return False
276
277
278def find_candidates(files: list[Path]) -> list[tuple[Path, str]]:

Callers 1

collect_python_filesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected