sanic/tox.ini

50 lines
908 B
INI
Raw Normal View History

[tox]
envlist = py36, py37, {py36,py37}-no-ext, lint, check
2016-12-26 03:05:11 +00:00
[testenv]
2017-05-15 02:49:25 +01:00
usedevelop = True
setenv =
{py36,py37}-no-ext: SANIC_NO_UJSON=1
{py36,py37}-no-ext: SANIC_NO_UVLOOP=1
deps =
2017-05-15 02:49:25 +01:00
coverage
pytest==4.1.0
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
httpcore==0.3.0
requests-async==0.5.0
2017-05-15 02:49:25 +01:00
chardet<=2.3.0
beautifulsoup4
gunicorn
pytest-benchmark
uvicorn
websockets>=6.0,<7.0
commands =
pytest {posargs:tests --cov sanic}
- coverage combine --append
2017-08-10 15:55:38 +01:00
coverage report -m
coverage html -i
2018-10-14 02:10:43 +01:00
[testenv:lint]
deps =
flake8
2018-10-14 02:10:43 +01:00
black
2018-10-18 05:20:16 +01:00
isort
commands =
flake8 sanic
black --config ./.black.toml --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
[pytest]
filterwarnings =
ignore:.*async with lock.* instead:DeprecationWarning