Skip to content

Commit beb7d66

Browse files
authored
Fix coverage reporting (#2477)
1 parent e7fa1c2 commit beb7d66

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

pyproject.toml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies = [
2222
]
2323
optional-dependencies.test = [
2424
"covdefaults>=2.2.2",
25-
"coverage>=7.0.1",
25+
"coverage>=7.0.2",
2626
"coverage-enable-subprocess>=1",
2727
"flaky>=3.7",
2828
"packaging>=22",
@@ -98,24 +98,18 @@ html.show_contexts = true
9898
html.skip_covered = false
9999
report.omit = [
100100
# site.py is ran before the coverage can be enabled, no way to measure coverage on this
101-
"src/virtualenv/create/via_global_ref/builtin/python2/site.py",
102-
"src/virtualenv/create/via_global_ref/_virtualenv.py",
103-
"src/virtualenv/activation/python/activate_this.py",
104-
"src/virtualenv/seed/wheels/embed/pip-*.whl/*",
101+
"**/src/virtualenv/create/via_global_ref/builtin/python2/site.py",
102+
"**/src/virtualenv/create/via_global_ref/_virtualenv.py",
103+
"**/src/virtualenv/activation/python/activate_this.py",
104+
"**/src/virtualenv/seed/wheels/embed/pip-*.whl/pip/**",
105105
]
106-
paths.source = [
107-
"src",
108-
".tox/*/lib/*/site-packages", # pypy3.8 + cpython
109-
".tox/*/site-packages", # pypy3.7
110-
".tox\\*\\Lib\\site-packages", # pypy3.8 + cpython
111-
".tox\\*\\site-packages", # pypy3.7
112-
]
113-
paths.other = [".", "*/virtualenv", "*\\virtualenv"]
106+
paths.source = ["src", "**/site-packages"]
114107
report.fail_under = 76
115108
run.source = ["${_COVERAGE_SRC}", "tests"]
116109
run.dynamic_context = "test_function"
117110
run.parallel = true
118111
run.plugins = ["covdefaults"]
112+
run.relative_files = true
119113

120114
[tool.black]
121115
line-length = 120

0 commit comments

Comments
 (0)