mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 10:36:53 +00:00
require coverage 6.x and simplify config
This commit is contained in:
parent
382cc91040
commit
ef3585b3a0
2 changed files with 1 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
3
tox.ini
3
tox.ini
|
|
@ -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/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue