Skip to content

Commit 9586ba9

Browse files
chore(profiling): add pyi for pprof protobufs
1 parent deb7cf8 commit 9586ba9

File tree

3 files changed

+533
-18
lines changed

3 files changed

+533
-18
lines changed

scripts/check_suitespec_coverage.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

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

4244

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

4650

4751
def unmatched() -> set[str]:

0 commit comments

Comments
 (0)