2015-08-03 18:24:39 +00:00
|
|
|
[tox]
|
2021-04-04 01:39:08 +00:00
|
|
|
isolated_build = true
|
2017-04-07 18:46:57 +00:00
|
|
|
envlist =
|
2021-04-05 01:50:39 +00:00
|
|
|
# Keep this in sync with .github/workflows/main.yml
|
2021-12-23 09:15:07 +00:00
|
|
|
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]
|
2019-09-08 00:25:03 +00:00
|
|
|
extras =
|
|
|
|
dotnet
|
|
|
|
go
|
2021-04-03 02:20:16 +00:00
|
|
|
deps =
|
2016-11-02 23:29:28 +00:00
|
|
|
pytest
|
2015-08-03 18:24:39 +00:00
|
|
|
commands =
|
2020-10-03 19:21:25 +00:00
|
|
|
pytest {posargs}
|
2015-08-03 18:24:39 +00:00
|
|
|
|
2019-01-27 05:20:45 +00:00
|
|
|
[testenv:formatting]
|
|
|
|
basepython = python3
|
2019-09-08 00:25:03 +00:00
|
|
|
skip_install = true
|
2016-06-08 23:34:52 +00:00
|
|
|
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]
|
2019-09-08 00:25:03 +00:00
|
|
|
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/*
|