Return whether path matches any of the patterns in the list of globs given.
(path: Path, patterns: Iterable[str])
| 211 | |
| 212 | |
| 213 | def path_matches_patterns(path: Path, patterns: Iterable[str]) -> bool: |
| 214 | """Return whether path matches any of the patterns in the list of globs given.""" |
| 215 | return any(fnmatch_ex(pattern, path) for pattern in patterns) |
| 216 | |
| 217 | |
| 218 | def pytest_pycollect_makemodule(module_path: Path, parent) -> "Module": |
no test coverage detected