Skip to content

Commit 3df3d87

Browse files
authored
Improve Coverage.py configuration (#689)
Hide data files within a directory to avoid cluttering the repository root, and minimize reports.
1 parent 2081b4a commit 3df3d87

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ ini_options.xfail_strict = true
130130

131131
[tool.coverage]
132132
run.branch = true
133+
run.data_file = ".coverage/cov"
133134
run.parallel = true
134135
run.source = [
135136
"tests",
@@ -140,6 +141,8 @@ paths.source = [
140141
".tox/**/site-packages",
141142
]
142143
report.show_missing = true
144+
report.skip_covered = true
145+
report.skip_empty = true
143146

144147
[tool.rstcheck]
145148
report_level = "ERROR"

0 commit comments

Comments
 (0)