Inline all the tox definitions

This commit is contained in:
Luke Murphy 2019-10-06 15:14:09 +02:00
parent 28d8086f1a
commit ed47ad09d8
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 13 additions and 26 deletions

39
tox.ini
View File

@ -23,62 +23,49 @@ commands =
[testenv:lint] [testenv:lint]
description = lint the source description = lint the source
skipdist = True skipdist = True
deps = deps = flake8
flake8 commands = flake8 {posargs} hypercore_crypto/ test/
commands =
flake8 {posargs} hypercore_crypto/ 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 hypercore_crypto/ test/
commands =
isort {posargs:-rc -c} -sp setup.cfg hypercore_crypto/ test/
[testenv:format] [testenv:format]
description = format the source description = format the source
skipdist = True skipdist = True
basepython = python3.7 basepython = python3.7
deps = deps = black
black commands = black {posargs:--check} hypercore_crypto/ test/
commands =
black {posargs:--check} hypercore_crypto/ 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 hypercore_crypto/ test/
commands =
mypy hypercore_crypto/ test/
[testenv:docs] [testenv:docs]
description = build the documentation description = build the documentation
skipdist = True skipdist = True
extras = docs extras = docs
commands = commands = python -m setup build_sphinx
python -m setup build_sphinx
[testenv:changelog] [testenv:changelog]
description = draft the changelog description = draft the changelog
skipdist = True skipdist = True
extras = changelog extras = changelog
commands = commands = towncrier --draft
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/*