Skip to content

Commit 7293e55

Browse files
committed
pyproject.toml: simplify coverage filter
Drop the "omit" rules and use a simpler "source = src/" to declare what we are interested in. This is the first recommendation at https://coverage.readthedocs.io/en/latest/source.html#source-execution Note: as seen in the logs, Github runners don't use /tmp. They may not even use $TMPDIR. Signed-off-by: Marc Herbert <Marc.Herbert@gmail.com>
1 parent 5f5931f commit 7293e55

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,7 @@ namespaces = false
6969
[tool.coverage.run]
7070
patch = ["subprocess"]
7171
relative_files = true
72-
omit = [
73-
"*/tmp/*",
74-
]
75-
76-
[tool.coverage.report]
77-
omit = [
78-
"*/tmp/*",
79-
"*/net-tools/scripts/*",
80-
"*/subdir/Kconfiglib/scripts/test.py",
81-
]
72+
source = ["src/"]
8273

8374
[tool.coverage.paths]
8475
source = [

0 commit comments

Comments
 (0)