1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
[tox]
envlist =
lint
mypy
twine
py{39,310,311,312,313}-click8
report
docs
[tool:pytest]
addopts =
--basetemp={envtmpdir}
[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps =
-r requirements/test.in
click8: click >=8, <9
commands =
pytest {posargs:-vv}
depends =
report: py39-click8
[testenv:py39-click8]
commands =
pytest --cov=cloup {posargs:-vv}
[testenv:report]
skip_install = true
deps = coverage
commands =
coverage html
coverage report
[testenv:lint]
skip_install = true
deps = flake8
commands = flake8 cloup tests examples
[testenv:mypy]
deps =
mypy
typing-extensions
commands =
mypy --strict cloup
mypy tests examples
[testenv:twine]
deps = twine
commands = twine check {distdir}/*
[testenv:dev] # Create a development environment
envdir = {toxinidir}/venv
basepython = python3.9
usedevelop = true
deps = -r requirements/dev.txt
commands = python --version
[testenv:docs]
basepython = python3.9
deps = -r requirements/docs.txt
commands =
python scripts/remove.py docs/_build
sphinx-build {posargs:-E} -b html docs docs/_build/html
# sphinx-build -b linkcheck docs docs/_build/html
|