mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-09 22:34:17 +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]
|
[run]
|
||||||
parallel = True
|
|
||||||
branch = True
|
branch = True
|
||||||
source =
|
source =
|
||||||
flake8
|
flake8
|
||||||
|
|
@ -8,12 +7,6 @@ omit =
|
||||||
# Don't complain if non-runnable code isn't run
|
# Don't complain if non-runnable code isn't run
|
||||||
*/__main__.py
|
*/__main__.py
|
||||||
|
|
||||||
[paths]
|
|
||||||
source =
|
|
||||||
src/flake8
|
|
||||||
.tox/*/lib/python*/site-packages/flake8
|
|
||||||
.tox/pypy/site-packages/flake8
|
|
||||||
|
|
||||||
[report]
|
[report]
|
||||||
show_missing = True
|
show_missing = True
|
||||||
skip_covered = True
|
skip_covered = True
|
||||||
|
|
|
||||||
3
tox.ini
3
tox.ini
|
|
@ -5,10 +5,9 @@ envlist = py36,py37,py38,flake8,linters,docs
|
||||||
[testenv]
|
[testenv]
|
||||||
deps =
|
deps =
|
||||||
pytest!=3.0.5,!=5.2.3
|
pytest!=3.0.5,!=5.2.3
|
||||||
coverage
|
coverage>=6
|
||||||
commands =
|
commands =
|
||||||
coverage run -m pytest {posargs}
|
coverage run -m pytest {posargs}
|
||||||
coverage combine
|
|
||||||
coverage report
|
coverage report
|
||||||
# ensure 100% coverage of tests
|
# ensure 100% coverage of tests
|
||||||
coverage report --fail-under 100 --include tests/*
|
coverage report --fail-under 100 --include tests/*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue