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

Function _is_excluded

ci/lint_python/sys_path_checker.py:97–103  ·  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

95
96
97def _is_excluded(path: Path, exclude_parts: list[str]) -> bool:
98 """Return True if any component of path matches an exclude pattern."""
99 path_str = path.as_posix()
100 for exc in exclude_parts:
101 if exc in path_str:
102 return True
103 return False
104
105
106def main(argv: list[str] | None = None) -> int:

Callers 1

collect_python_filesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected