flat-tree/tox.ini

47 lines
911 B
INI
Raw Normal View History

[tox]
envlist =
2020-05-16 15:58:44 +00:00
{py36,py37,py38}
lint
sort
format
type
skip_missing_interpreters = True
isolated_build = True
[testenv]
2020-05-16 15:58:44 +00:00
deps =
pytest
pytest-cov
pytest-mock
2019-10-06 13:30:15 +00:00
commands = pytest test/ --cov={toxinidir}/flat_tree/ --no-cov-on-fail {posargs}
[testenv:lint]
skipdist = True
2019-10-06 13:30:15 +00:00
deps = flake8
commands = flake8 {posargs} flat_tree/ test/
[testenv:sort]
skipdist = True
2019-10-06 13:30:15 +00:00
deps = isort
commands = isort {posargs:-rc -c} -sp setup.cfg flat_tree/ test/
[testenv:format]
skipdist = True
2019-10-06 13:30:15 +00:00
deps = black
commands = black {posargs:--check} flat_tree/ test/
[testenv:type]
skipdist = True
2019-10-06 13:30:15 +00:00
deps = mypy
commands = mypy flat_tree/ test/
[testenv:release]
2020-05-16 16:16:52 +00:00
deps = twine
commands =
2019-11-03 15:15:14 +00:00
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/*
2019-11-03 15:15:14 +00:00
whitelist_externals =
rm