Skip to content

Commit 68ab41e

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

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
@@ -140,6 +140,7 @@ ini_options.xfail_strict = true
140140

141141
[tool.coverage]
142142
run.branch = true
143+
run.data_file = ".coverage/cov"
143144
run.parallel = true
144145
run.source = [
145146
"django_mysql",
@@ -150,6 +151,8 @@ paths.source = [
150151
".tox/**/site-packages",
151152
]
152153
report.show_missing = true
154+
report.skip_covered = true
155+
report.skip_empty = true
153156

154157
[tool.mypy]
155158
enable_error_code = [

0 commit comments

Comments
 (0)