Return True if any component of *path* matches an exclude pattern.
(path: Path, exclude_parts: list[str])
| 267 | |
| 268 | |
| 269 | def _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 | |
| 278 | def find_candidates(files: list[Path]) -> list[tuple[Path, str]]: |
no outgoing calls
no test coverage detected