2016-10-15 11:56:34 +02:00
|
|
|
[tox]
|
2019-04-24 00:44:42 +03:00
|
|
|
envlist = py36, py37, {py36,py37}-no-ext, lint, check
|
2016-12-25 19:05:11 -08:00
|
|
|
|
2017-02-05 11:44:01 -08:00
|
|
|
[testenv]
|
2017-05-15 09:49:25 +08:00
|
|
|
usedevelop = True
|
|
|
|
setenv =
|
2019-04-24 00:44:42 +03:00
|
|
|
{py36,py37}-no-ext: SANIC_NO_UJSON=1
|
|
|
|
{py36,py37}-no-ext: SANIC_NO_UVLOOP=1
|
2016-10-15 11:56:34 +02:00
|
|
|
deps =
|
2017-05-15 09:49:25 +08:00
|
|
|
coverage
|
2019-01-08 07:15:23 -08:00
|
|
|
pytest==4.1.0
|
2017-06-11 08:49:35 -07:00
|
|
|
pytest-cov
|
2017-08-08 22:21:40 -07:00
|
|
|
pytest-sanic
|
2017-05-15 09:49:25 +08:00
|
|
|
pytest-sugar
|
2019-04-24 00:44:42 +03:00
|
|
|
httpcore==0.1.1
|
|
|
|
requests-async==0.4.0
|
2017-05-15 09:49:25 +08:00
|
|
|
chardet<=2.3.0
|
|
|
|
beautifulsoup4
|
2017-05-23 10:59:55 +08:00
|
|
|
gunicorn
|
2019-02-28 20:26:41 +05:30
|
|
|
pytest-benchmark
|
2016-10-15 11:56:34 +02:00
|
|
|
commands =
|
2019-04-24 00:44:42 +03:00
|
|
|
pytest {posargs:tests --cov sanic}
|
2017-08-10 08:39:02 -07:00
|
|
|
- coverage combine --append
|
2017-08-10 07:55:38 -07:00
|
|
|
coverage report -m
|
2018-11-26 01:26:34 +05:30
|
|
|
coverage html -i
|
2017-02-05 11:44:01 -08:00
|
|
|
|
2018-10-13 18:10:43 -07:00
|
|
|
[testenv:lint]
|
2016-12-24 14:06:53 -08:00
|
|
|
deps =
|
|
|
|
flake8
|
2018-10-13 18:10:43 -07:00
|
|
|
black
|
2018-10-17 21:20:16 -07:00
|
|
|
isort
|
2016-12-24 14:06:53 -08:00
|
|
|
|
|
|
|
commands =
|
|
|
|
flake8 sanic
|
2019-04-24 00:44:42 +03:00
|
|
|
black --config ./.black.toml --check --verbose sanic
|
2018-10-17 21:20:16 -07: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
|
2019-02-28 20:26:41 +05:30
|
|
|
|
|
|
|
[pytest]
|
|
|
|
filterwarnings =
|
|
|
|
ignore:.*async with lock.* instead:DeprecationWarning
|