flask/tox.ini
David Lord c43edfc7c0
remove simplejson
- remove encoding detection backport, json.loads supports it directly
- use str.translate instead of multiple str.replace
2020-04-07 09:55:39 -07:00

40 lines
1 KiB
INI

[tox]
envlist =
py{38,37,36,py3}
py38-{devel,lowest}
style
docs
skip_missing_interpreters = true
[testenv]
deps =
pytest
greenlet
blinker
python-dotenv
lowest: Werkzeug==0.15.5
lowest: Jinja2==2.10
lowest: itsdangerous==0.24
lowest: Click==5.1
devel: https://github.com/pallets/werkzeug/archive/master.tar.gz
devel: https://github.com/pallets/markupsafe/archive/master.tar.gz
devel: https://github.com/pallets/jinja/archive/master.tar.gz
devel: https://github.com/pallets/itsdangerous/archive/master.tar.gz
devel: https://github.com/pallets/click/archive/master.tar.gz
commands =
pip install -q -e examples/tutorial[test]
pip install -q -e examples/javascript[test]
pytest --tb=short --basetemp={envtmpdir} {posargs:tests examples}
[testenv:style]
deps = pre-commit
skip_install = true
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:docs]
deps = -r docs/requirements.txt
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html