moulinette/tox.ini

48 lines
1.1 KiB
INI
Raw Permalink Normal View History

[tox]
2020-08-20 00:42:36 +02:00
envlist =
py311-{pytest,lint,invalidcode,mypy}
2020-08-20 00:42:36 +02:00
format
format-check
docs
skipdist = True
[testenv]
usedevelop = True
passenv = *
extras = tests
deps =
py311-pytest: .[tests]
py311-lint: flake8
py311-invalidcode: flake8
py311-mypy: mypy >= 0.761
commands =
py311-pytest: pytest {posargs} -c pytest.ini
py311-lint: flake8 moulinette test
py311-invalidcode: flake8 moulinette test --select F
py311-mypy: mypy --ignore-missing-imports --install-types --non-interactive moulinette/
2021-08-20 13:49:50 +02:00
[gh-actions]
python =
3.11: py311
2021-08-20 13:49:50 +02: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]
2021-01-26 10:40:38 +01:00
basepython = {[testenv:format]basepython}
2019-08-04 18:54:27 +02:00
usedevelop = True
2021-01-20 06:07:47 +01:00
commands = python3 -m sphinx -W doc/ doc/_build
2019-08-04 18:54:27 +02:00
deps =
2019-08-04 19:46:55 +02:00
-r{toxinidir}/doc/requirements.txt