sanic/tox.ini

80 lines
1.4 KiB
INI
Raw Normal View History

[tox]
envlist = py36, py37, py38, pyNightly, {py36,py37,py38,pyNightly}-no-ext, lint, check, security, docs
2016-12-26 03:05:11 +00:00
[testenv]
2017-05-15 02:49:25 +01:00
usedevelop = True
setenv =
{py36,py37,py38,pyNightly}-no-ext: SANIC_NO_UJSON=1
{py36,py37,py38,pyNightly}-no-ext: SANIC_NO_UVLOOP=1
deps =
2017-05-15 02:49:25 +01:00
coverage
pytest==5.2.1
pytest-asyncio
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
httpx==0.11.1
2017-05-15 02:49:25 +01:00
chardet<=2.3.0
beautifulsoup4
gunicorn
pytest-benchmark
uvicorn
websockets>=7.0,<8.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
bandit
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:type-checking]
deps =
mypy
commands =
mypy 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
[testenv:security]
deps =
bandit
commands =
bandit --recursive sanic --skip B404,B101 --exclude sanic/reloader_helpers.py
[testenv:docs]
platform = linux|linux2|darwin
whitelist_externals = make
deps =
sphinx>=2.1.2
sphinx_rtd_theme>=0.4.3
recommonmark>=0.5.0
docutils
pygments
gunicorn
commands =
make docs-test