Skip to content

Commit 4a50b1f

Browse files
committed
Improve Coverage.py configuration
Hide data files within a directory to avoid cluttering the repository root, and minimize reports.
1 parent fed4766 commit 4a50b1f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyproject.toml

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

104104
[tool.coverage]
105105
run.branch = true
106+
run.data_file = ".coverage/cov"
106107
run.parallel = true
107108
run.source = [
108109
"pytest_randomly",
@@ -113,6 +114,8 @@ paths.source = [
113114
".tox/**/site-packages",
114115
]
115116
report.show_missing = true
117+
report.skip_covered = true
118+
report.skip_empty = true
116119

117120
[tool.mypy]
118121
enable_error_code = [

0 commit comments

Comments
 (0)