Put coverage config into pyproject.toml

This commit is contained in:
Hynek Schlawack 2020-01-06 09:14:24 +01:00
parent e67cc51930
commit 6fcb759862
4 changed files with 14 additions and 14 deletions

View File

@ -1,12 +0,0 @@
[run]
branch = True
source =
attr
[paths]
source =
src
.tox/*/site-packages
[report]
show_missing = True

View File

@ -3,6 +3,18 @@ requires = ["setuptools>=40.6.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.coverage.run]
parallel = true
branch = true
source = ["attr"]
[tool.coverage.paths]
source = ["src", ".tox/*/site-packages"]
[tool.coverage.report]
show_missing = true
[tool.black]
line-length = 79

View File

@ -39,7 +39,7 @@ INSTALL_REQUIRES = []
EXTRAS_REQUIRE = {
"docs": ["sphinx", "zope.interface"],
"tests": [
"coverage",
"coverage[toml]",
"hypothesis",
"pympler",
"pytest>=4.3.0", # 4.3.0 dropped last use of `convert`

View File

@ -50,7 +50,7 @@ commands = coverage run --parallel -m pytest {posargs}
[testenv:coverage-report]
basepython = python3.7
skip_install = true
deps = coverage
deps = coverage[toml]
commands =
coverage combine
coverage report