2019-06-27 23:55:33 +02:00
|
|
|
[tox]
|
2020-08-20 00:42:36 +02:00
|
|
|
envlist =
|
2020-12-31 19:42:12 +01:00
|
|
|
py37-{pytest,lint}
|
2020-08-20 00:42:36 +02:00
|
|
|
format
|
|
|
|
format-check
|
2019-08-04 19:46:42 +02:00
|
|
|
docs
|
2019-06-27 23:55:33 +02:00
|
|
|
skipdist = True
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop = True
|
|
|
|
passenv = *
|
2020-12-04 22:15:36 +01:00
|
|
|
extras = tests
|
2019-06-27 23:55:33 +02:00
|
|
|
deps =
|
2020-12-31 19:42:12 +01:00
|
|
|
py37-pytest: .[tests]
|
|
|
|
py37-lint: flake8
|
2019-06-27 23:55:33 +02:00
|
|
|
commands =
|
2020-12-31 19:42:12 +01:00
|
|
|
py37-pytest: pytest {posargs} -c pytest.ini
|
|
|
|
py37-lint: flake8 moulinette test
|
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
|