2019-06-27 23:55:33 +02:00
|
|
|
[tox]
|
2019-07-28 22:05:59 +02:00
|
|
|
envlist =
|
|
|
|
py27
|
|
|
|
lint
|
2019-08-04 19:46:42 +02:00
|
|
|
docs
|
2019-06-27 23:55:33 +02:00
|
|
|
skipdist = True
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop = True
|
|
|
|
passenv = *
|
|
|
|
deps =
|
|
|
|
pytest >= 4.6.3, < 5.0
|
|
|
|
pytest-cov >= 2.7.1, < 3.0
|
|
|
|
pytest-mock >= 1.10.4, < 2.0
|
|
|
|
pytest-env >= 0.6.2, < 1.0
|
|
|
|
requests >= 2.22.0, < 3.0
|
|
|
|
requests-mock >= 1.6.0, < 2.0
|
2019-11-19 14:37:01 +01:00
|
|
|
toml >= 0.10, < 0.11
|
2019-08-22 03:27:31 +02:00
|
|
|
gevent-websocket
|
|
|
|
bottle >= 0.12
|
2019-11-19 21:06:55 +01:00
|
|
|
WebTest >= 2.0, < 2.1
|
2019-06-27 23:55:33 +02:00
|
|
|
commands =
|
|
|
|
pytest {posargs}
|
2019-07-28 22:05:59 +02:00
|
|
|
|
|
|
|
[testenv:lint]
|
|
|
|
commands = flake8 moulinette test
|
|
|
|
deps = flake8
|
|
|
|
skip_install = True
|
|
|
|
usedevelop = False
|
2019-08-04 18:54:27 +02:00
|
|
|
|
2019-11-25 17:20:34 +01:00
|
|
|
|
|
|
|
[testenv:format]
|
|
|
|
basepython = python3
|
|
|
|
commands = black {posargs} moulinette test
|
|
|
|
deps = black
|
|
|
|
skip_install = True
|
|
|
|
usedevelop = False
|
|
|
|
|
|
|
|
[testenv:format-check]
|
|
|
|
basepython = {[testenv:format]basepython}
|
|
|
|
commands = black {posargs:--check --diff} moulinette test
|
|
|
|
deps = {[testenv:format]deps}
|
|
|
|
skip_install = {[testenv:format]skip_install}
|
|
|
|
usedevelop = {[testenv:format]usedevelop}
|
|
|
|
|
2019-08-04 18:54:27 +02:00
|
|
|
[testenv:docs]
|
|
|
|
usedevelop = True
|
|
|
|
commands = python -m sphinx -W doc/ doc/_build
|
|
|
|
deps =
|
2019-08-04 19:46:55 +02:00
|
|
|
-r{toxinidir}/doc/requirements.txt
|