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