hypercore-crypto/tox.ini

50 lines
986 B
INI

[tox]
envlist =
{py36,py37,py38}
lint
sort
format
type
docs
skip_missing_interpreters = True
isolated_build = True
[testenv]
deps =
pytest
pytest-cov
pytest-mock
commands =
pytest test/ --cov={toxinidir}/hypercore_crypto/ --no-cov-on-fail {posargs}
[testenv:lint]
skipdist = True
deps = flake8
commands = flake8 {posargs} hypercore_crypto/ test/
[testenv:sort]
skipdist = True
deps = isort
commands = isort {posargs:-rc -c} -sp setup.cfg hypercore_crypto/ test/
[testenv:format]
skipdist = True
deps = black
commands = black {posargs:--check} hypercore_crypto/ test/
[testenv:type]
skipdist = True
deps = mypy
commands = mypy hypercore_crypto/ test/
[testenv:release]
description = make a release
deps = twine
commands =
rm -rf {toxworkdir}/dist
python -m setup sdist --dist-dir {toxworkdir}/dist bdist_wheel
python -m setup sdist --dist-dir {toxworkdir}/dist bdist_egg
twine upload {toxworkdir}/dist/*
whitelist_externals =
rm