This repository has been archived on 2020-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
magic-app/tox.ini

47 lines
929 B
INI
Raw Normal View History

2020-07-04 11:12:31 +00:00
[tox]
envlist =
py38
2020-07-04 11:12:31 +00:00
lint
sort
format
type
skip_missing_interpreters = True
isolated_build = True
[testenv]
[testenv:lint]
description = lint the source
skipdist = True
deps = flake8
commands = flake8 {posargs} magic_app/ test/
[testenv:sort]
description = sort the source
skipdist = True
deps = isort
commands = isort {posargs:-c} -sp setup.cfg magic_app/ test/
2020-07-04 11:12:31 +00:00
[testenv:format]
description = format the source
skipdist = True
deps = black
commands = black {posargs:--check} magic_app/ test/
[testenv:type]
description = type check the source
skipdist = True
deps = mypy
commands = mypy magic_app/ test/
[testenv:release]
description = make a release
deps = twine
2020-07-04 11:12:31 +00:00
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