Inline tox defs

This commit is contained in:
Luke Murphy 2019-10-06 16:12:49 +02:00
parent 896afc7675
commit 173c911f28
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

48
tox.ini
View File

@ -17,70 +17,54 @@ deps =
pytest pytest
pytest-cov pytest-cov
pytest-mock pytest-mock
commands = commands = pytest test/ --cov={toxinidir}/merkle_tree_stream/ --no-cov-on-fail {posargs}
pytest test/ --cov={toxinidir}/merkle_tree_stream/ --no-cov-on-fail {posargs}
[testenv:lint] [testenv:lint]
description = lint the source description = lint the source
skipdist = True skipdist = True
deps = deps = flake8
flake8 commands = flake8 {posargs} merkle_tree_stream/ test/
commands =
flake8 {posargs} merkle_tree_stream/ test/
[testenv:sort] [testenv:sort]
description = sort the source description = sort the source
skipdist = True skipdist = True
deps = deps = isort
isort commands = isort {posargs:-rc -c} -sp setup.cfg merkle_tree_stream/ test/
commands =
isort {posargs:-rc -c} -sp setup.cfg merkle_tree_stream/ test/
[testenv:format] [testenv:format]
description = format the source description = format the source
skipdist = True skipdist = True
basepython = python3.6 basepython = python3.6
deps = deps = black
black commands = black {posargs:--check} merkle_tree_stream/ test/
commands =
black {posargs:--check} merkle_tree_stream/ test/
[testenv:type] [testenv:type]
description = type check the source description = type check the source
basepython = python3.7 basepython = python3.7
skipdist = True skipdist = True
deps = deps = mypy
mypy commands = mypy merkle_tree_stream/ test/
commands =
mypy merkle_tree_stream/ test/
[testenv:docs] [testenv:docs]
description = build the documentation description = build the documentation
skipdist = True skipdist = True
extras = extras = docs
docs commands = python -m setup build_sphinx
commands =
python -m setup build_sphinx
[testenv:changelog] [testenv:changelog]
description = draft the changelog description = draft the changelog
skipdist = True skipdist = True
extras = extras = changelog
changelog commands = towncrier --draft
commands =
towncrier --draft
[testenv:metadata-release] [testenv:metadata-release]
description = validate the package metadata description = validate the package metadata
deps = deps = twine
twine commands = twine check {toxworkdir}/dist/*
commands =
twine check .tox/dist/*
[testenv:release] [testenv:release]
description = make a release description = make a release
deps = deps = {[testenv:metadata-release]deps}
{[testenv:metadata-release]deps}
commands = commands =
python -m setup sdist bdist_wheel python -m setup sdist bdist_wheel
twine upload {toxworkdir}/dist/* twine upload {toxworkdir}/dist/*