Skip to content

Commit

Permalink
Fix coverage reporting (#2477)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat authored Jan 3, 2023
1 parent e7fa1c2 commit beb7d66
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies = [
]
optional-dependencies.test = [
"covdefaults>=2.2.2",
"coverage>=7.0.1",
"coverage>=7.0.2",
"coverage-enable-subprocess>=1",
"flaky>=3.7",
"packaging>=22",
Expand Down Expand Up @@ -98,24 +98,18 @@ html.show_contexts = true
html.skip_covered = false
report.omit = [
# site.py is ran before the coverage can be enabled, no way to measure coverage on this
"src/virtualenv/create/via_global_ref/builtin/python2/site.py",
"src/virtualenv/create/via_global_ref/_virtualenv.py",
"src/virtualenv/activation/python/activate_this.py",
"src/virtualenv/seed/wheels/embed/pip-*.whl/*",
"**/src/virtualenv/create/via_global_ref/builtin/python2/site.py",
"**/src/virtualenv/create/via_global_ref/_virtualenv.py",
"**/src/virtualenv/activation/python/activate_this.py",
"**/src/virtualenv/seed/wheels/embed/pip-*.whl/pip/**",
]
paths.source = [
"src",
".tox/*/lib/*/site-packages", # pypy3.8 + cpython
".tox/*/site-packages", # pypy3.7
".tox\\*\\Lib\\site-packages", # pypy3.8 + cpython
".tox\\*\\site-packages", # pypy3.7
]
paths.other = [".", "*/virtualenv", "*\\virtualenv"]
paths.source = ["src", "**/site-packages"]
report.fail_under = 76
run.source = ["${_COVERAGE_SRC}", "tests"]
run.dynamic_context = "test_function"
run.parallel = true
run.plugins = ["covdefaults"]
run.relative_files = true

[tool.black]
line-length = 120
Expand Down

0 comments on commit beb7d66

Please sign in to comment.