Skip to content

Commit 82e2abc

Browse files
committed
Move coverage configuration to pyproject.toml
Signed-off-by: Stephen Finucane <stephen@that.guru>
1 parent f94ddad commit 82e2abc

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,23 @@ extend-exclude = '''
7575
)/
7676
'''
7777

78+
# coverage configuration
79+
[tool.coverage.run]
80+
branch = true
81+
relative_files = true
82+
parallel = true
83+
source = [
84+
"tests",
85+
"wrapt",
86+
]
87+
88+
[tool.coverage.paths]
89+
src = [
90+
"src/",
91+
".tox/*/lib/*/site-packages/",
92+
".tox/pypy*/site-packages/",
93+
]
94+
7895
# pytest configuration
7996
[tool.pytest.ini_options]
8097
testpaths = ["tests"]

setup.cfg

Lines changed: 0 additions & 15 deletions
This file was deleted.

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ setenv =
1414
install-extensions,disable-extensions: WRAPT_INSTALL_EXTENSIONS = true
1515
disable-extensions: WRAPT_DISABLE_EXTENSIONS = true
1616
commands =
17-
python -m coverage run --rcfile {toxinidir}/setup.cfg -m pytest -v {posargs} {toxinidir}/tests
17+
python -m coverage run --rcfile {toxinidir}/pyproject.toml -m pytest -v {posargs} {toxinidir}/tests
1818

1919
[gh-actions]
2020
python =

0 commit comments

Comments
 (0)