Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion scripts/check_suitespec_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

# Ignore any embedded documentation
IGNORE_PATTERNS.add("**/*.md")
# Ignore stub files
IGNORE_PATTERNS.add("tests/profiling/collector/pprof_pb2.pyi")
# TODO(taegyunkim): remove these after merging profiling v2 tests back to profiling
IGNORE_PATTERNS.add("tests/profiling/*.py")
IGNORE_PATTERNS.add("tests/profiling/*/*.py")
Expand All @@ -41,7 +43,9 @@ def filter_ignored(paths: t.Iterable[Path]) -> set[Path]:


def uncovered(path: Path) -> set[str]:
return {str(f) for f in filter_ignored(path.glob("**/*")) if not any(fnmatch.fnmatch(f, p) for p in SPEC_PATTERNS)}
return {
str(f) for f in filter_ignored(path.glob("**/*")) if not any(fnmatch.fnmatch(str(f), p) for p in SPEC_PATTERNS)
}


def unmatched() -> set[str]:
Expand Down
Loading
Loading