Skip to content

Commit 321d465

Browse files
committed
fix(tooling): include namespace packages in coverage reports
1 parent 5f132e7 commit 321d465

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,12 @@ omit = [
303303
"*/ethereum/forks/bpo*/*",
304304
]
305305

306+
[tool.coverage.report]
307+
# `ethereum.forks` is a namespace package (no `__init__.py`); without this
308+
# option, coverage skips it when reporting never-imported files at 0%, so
309+
# forks absent from a run silently drop out of the coverage denominator.
310+
include_namespace_packages = true
311+
306312
[tool.docc]
307313
context = [
308314
"docc.listing.context",

0 commit comments

Comments
 (0)