sanic/tox.ini

83 lines
1.5 KiB
INI
Raw Normal View History

[tox]
2020-10-25 13:21:48 +00:00
envlist = py36, py37, py38, py39, pyNightly, {py36,py37,py38,py39,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 =
2020-10-25 13:21:48 +00:00
{py36,py37,py38,py39,pyNightly}-no-ext: SANIC_NO_UJSON=1
{py36,py37,py38,py39,pyNightly}-no-ext: SANIC_NO_UVLOOP=1
deps =
2020-12-24 19:56:35 +00:00
coverage==5.3
pytest==5.2.1
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
pytest-benchmark
pytest-dependency
2020-12-24 19:56:35 +00:00
httpcore==0.11.*
2020-09-27 00:58:36 +01:00
httpx==0.15.4
multidict>=5.0,<6.0
2017-05-15 02:49:25 +01:00
beautifulsoup4
2020-12-24 19:56:35 +00:00
gunicorn==20.0.4
uvicorn
websockets>=8.1,<9.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
isort>=5.0.0
bandit
commands =
flake8 sanic
black --config ./.black.toml --check --verbose sanic/
isort --check-only 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
2020-09-08 12:08:49 +01:00
addopts = --strict-markers
2020-09-27 08:46:51 +01:00
markers =
asyncio
[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
2020-12-24 19:56:35 +00:00
gunicorn==20.0.4
commands =
make docs-test