diff --git a/tox.ini b/tox.ini index ea3eabe..e2c5b31 100644 --- a/tox.ini +++ b/tox.ini @@ -17,70 +17,54 @@ deps = pytest pytest-cov pytest-mock -commands = - pytest test/ --cov={toxinidir}/merkle_tree_stream/ --no-cov-on-fail {posargs} +commands = pytest test/ --cov={toxinidir}/merkle_tree_stream/ --no-cov-on-fail {posargs} [testenv:lint] description = lint the source skipdist = True -deps = - flake8 -commands = - flake8 {posargs} merkle_tree_stream/ test/ +deps = flake8 +commands = flake8 {posargs} merkle_tree_stream/ test/ [testenv:sort] description = sort the source skipdist = True -deps = - isort -commands = - isort {posargs:-rc -c} -sp setup.cfg merkle_tree_stream/ test/ +deps = isort +commands = isort {posargs:-rc -c} -sp setup.cfg merkle_tree_stream/ test/ [testenv:format] description = format the source skipdist = True basepython = python3.6 -deps = - black -commands = - black {posargs:--check} merkle_tree_stream/ test/ +deps = black +commands = black {posargs:--check} merkle_tree_stream/ test/ [testenv:type] description = type check the source basepython = python3.7 skipdist = True -deps = - mypy -commands = - mypy merkle_tree_stream/ test/ +deps = mypy +commands = mypy merkle_tree_stream/ test/ [testenv:docs] description = build the documentation skipdist = True -extras = - docs -commands = - python -m setup build_sphinx +extras = docs +commands = python -m setup build_sphinx [testenv:changelog] description = draft the changelog skipdist = True -extras = - changelog -commands = - towncrier --draft +extras = changelog +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/*