You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sphinx-autoapi/tox.ini

50 lines
818 B
INI

[tox]
isolated_build = true
envlist =
# Keep this in sync with .github/workflows/main.yml
py{37,38,39,310,311}
formatting
lint
docs
[testenv]
extras =
dotnet
go
deps =
pytest
commands =
pytest {posargs}
[testenv:formatting]
basepython = python3
skip_install = true
deps =
black
commands =
black --check --diff autoapi tests
[testenv:lint]
skip_install = true
deps =
pylint~=2.15.9
commands =
pylint {posargs:autoapi}
[testenv:docs]
extras =
docs
changedir = {toxinidir}/docs
commands =
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:release]
skip_install = true
deps =
build
twine
commands =
python -c "import shutil, os; os.path.isdir('dist') and shutil.rmtree('dist')"
python -m build
twine upload dist/*