Inline all the tox definitions
This commit is contained in:
parent
28d8086f1a
commit
ed47ad09d8
39
tox.ini
39
tox.ini
@ -23,62 +23,49 @@ commands =
|
||||
[testenv:lint]
|
||||
description = lint the source
|
||||
skipdist = True
|
||||
deps =
|
||||
flake8
|
||||
commands =
|
||||
flake8 {posargs} hypercore_crypto/ test/
|
||||
deps = flake8
|
||||
commands = flake8 {posargs} hypercore_crypto/ test/
|
||||
|
||||
[testenv:sort]
|
||||
description = sort the source
|
||||
skipdist = True
|
||||
deps =
|
||||
isort
|
||||
commands =
|
||||
isort {posargs:-rc -c} -sp setup.cfg hypercore_crypto/ test/
|
||||
deps = isort
|
||||
commands = isort {posargs:-rc -c} -sp setup.cfg hypercore_crypto/ test/
|
||||
|
||||
[testenv:format]
|
||||
description = format the source
|
||||
skipdist = True
|
||||
basepython = python3.7
|
||||
deps =
|
||||
black
|
||||
commands =
|
||||
black {posargs:--check} hypercore_crypto/ test/
|
||||
deps = black
|
||||
commands = black {posargs:--check} hypercore_crypto/ test/
|
||||
|
||||
[testenv:type]
|
||||
description = type check the source
|
||||
basepython = python3.7
|
||||
skipdist = True
|
||||
deps =
|
||||
mypy
|
||||
commands =
|
||||
mypy hypercore_crypto/ test/
|
||||
deps = mypy
|
||||
commands = mypy hypercore_crypto/ test/
|
||||
|
||||
[testenv:docs]
|
||||
description = build the documentation
|
||||
skipdist = True
|
||||
extras = docs
|
||||
commands =
|
||||
python -m setup build_sphinx
|
||||
commands = python -m setup build_sphinx
|
||||
|
||||
[testenv:changelog]
|
||||
description = draft the changelog
|
||||
skipdist = True
|
||||
extras = changelog
|
||||
commands =
|
||||
towncrier --draft
|
||||
commands = towncrier --draft
|
||||
|
||||
[testenv:metadata-release]
|
||||
description = validate the package metadata
|
||||
deps =
|
||||
twine
|
||||
commands =
|
||||
twine check .tox/dist/*
|
||||
deps = twine
|
||||
commands = twine check {toxworkdir}/dist/*
|
||||
|
||||
[testenv:release]
|
||||
description = make a release
|
||||
deps =
|
||||
{[testenv:metadata-release]deps}
|
||||
deps = {[testenv:metadata-release]deps}
|
||||
commands =
|
||||
python -m setup sdist bdist_wheel
|
||||
twine upload {toxworkdir}/dist/*
|
||||
|
Loading…
Reference in New Issue
Block a user