sphinx-autoapi/tox.ini

50 lines
813 B
INI
Raw Normal View History

2015-08-03 18:24:39 +00:00
[tox]
2021-04-04 01:39:08 +00:00
isolated_build = true
envlist =
2021-04-05 01:50:39 +00:00
# Keep this in sync with .github/workflows/main.yml
py{37,38,39,310}
2019-01-27 05:20:45 +00:00
formatting
2019-10-05 22:11:23 +00:00
lint
2017-04-07 19:01:17 +00:00
docs
2015-08-03 18:24:39 +00:00
[testenv]
extras =
dotnet
go
2021-04-03 02:20:16 +00:00
deps =
pytest
2015-08-03 18:24:39 +00:00
commands =
pytest {posargs}
2015-08-03 18:24:39 +00:00
2019-01-27 05:20:45 +00:00
[testenv:formatting]
basepython = python3
skip_install = true
deps =
2019-03-30 18:47:11 +00:00
black
2015-08-03 18:24:39 +00:00
commands =
2020-05-15 11:11:58 +00:00
black --check --diff autoapi tests
2015-08-03 18:24:39 +00:00
[testenv:lint]
skip_install = true
2015-08-03 18:24:39 +00:00
deps =
2019-10-05 22:11:23 +00:00
pylint~=2.4.2
2015-08-03 18:24:39 +00:00
commands =
2019-10-05 22:11:23 +00:00
pylint {posargs:autoapi}
2019-01-27 05:20:45 +00:00
[testenv:docs]
2020-10-08 05:24:46 +00:00
extras =
docs
2019-01-27 05:20:45 +00:00
changedir = {toxinidir}/docs
commands =
2019-04-07 00:56:05 +00:00
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
2022-07-25 19:00:54 +00:00
[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/*