Merge pull request #1448 from PyCQA/coverage-6

require coverage 6.x and simplify config
This commit is contained in:
Anthony Sottile 2021-11-14 11:20:29 -05:00 committed by GitHub
commit 17a36ef267
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View file

@ -1,5 +1,4 @@
[run]
parallel = True
branch = True
source =
flake8
@ -8,12 +7,6 @@ omit =
# Don't complain if non-runnable code isn't run
*/__main__.py
[paths]
source =
src/flake8
.tox/*/lib/python*/site-packages/flake8
.tox/pypy/site-packages/flake8
[report]
show_missing = True
skip_covered = True

View file

@ -5,10 +5,9 @@ envlist = py36,py37,py38,flake8,linters,docs
[testenv]
deps =
pytest!=3.0.5,!=5.2.3
coverage
coverage>=6
commands =
coverage run -m pytest {posargs}
coverage combine
coverage report
# ensure 100% coverage of tests
coverage report --fail-under 100 --include tests/*