2016-10-15 10:56:34 +01:00
|
|
|
[tox]
|
2018-10-14 02:10:43 +01:00
|
|
|
envlist = py35, py36, py37, {py35,py36,py37}-no-ext, lint, check
|
2016-12-26 03:05:11 +00:00
|
|
|
|
2017-02-05 19:44:01 +00:00
|
|
|
[testenv]
|
2017-05-15 02:49:25 +01:00
|
|
|
usedevelop = True
|
|
|
|
setenv =
|
2018-07-04 06:07:08 +01:00
|
|
|
{py35,py36,py37}-no-ext: SANIC_NO_UJSON=1
|
|
|
|
{py35,py36,py37}-no-ext: SANIC_NO_UVLOOP=1
|
2016-10-15 10:56:34 +01:00
|
|
|
deps =
|
2017-05-15 02:49:25 +01:00
|
|
|
coverage
|
2019-03-06 14:36:03 +00:00
|
|
|
pytest>=3.6
|
2017-06-11 16:49:35 +01:00
|
|
|
pytest-cov
|
2017-08-09 06:21:40 +01:00
|
|
|
pytest-sanic
|
2017-05-15 02:49:25 +01:00
|
|
|
pytest-sugar
|
2018-06-07 18:07:26 +01:00
|
|
|
aiohttp>=2.3,<=3.2.1
|
2017-05-15 02:49:25 +01:00
|
|
|
chardet<=2.3.0
|
|
|
|
beautifulsoup4
|
2017-05-23 03:59:55 +01:00
|
|
|
gunicorn
|
2016-10-15 10:56:34 +01:00
|
|
|
commands =
|
2018-03-16 04:28:52 +00:00
|
|
|
pytest tests --cov sanic --cov-report= {posargs}
|
2017-08-10 16:39:02 +01:00
|
|
|
- coverage combine --append
|
2017-08-10 15:55:38 +01:00
|
|
|
coverage report -m
|
2018-11-25 19:56:34 +00:00
|
|
|
coverage html -i
|
2017-02-05 19:44:01 +00:00
|
|
|
|
2018-10-14 02:10:43 +01:00
|
|
|
[testenv:lint]
|
2016-12-24 22:06:53 +00:00
|
|
|
deps =
|
|
|
|
flake8
|
2018-10-14 02:10:43 +01:00
|
|
|
black
|
2018-10-18 05:20:16 +01:00
|
|
|
isort
|
2016-12-24 22:06:53 +00:00
|
|
|
|
|
|
|
commands =
|
|
|
|
flake8 sanic
|
2018-10-14 02:10:43 +01:00
|
|
|
black --check --verbose sanic
|
2018-10-18 05:20:16 +01:00
|
|
|
isort --check-only --recursive sanic
|
2017-05-02 10:17:24 +01:00
|
|
|
|
|
|
|
[testenv:check]
|
|
|
|
deps =
|
|
|
|
docutils
|
|
|
|
pygments
|
|
|
|
commands =
|
|
|
|
python setup.py check -r -s
|