Files
subprocrunner/tox.ini
2021-05-05 15:33:01 +09:00

68 lines
1.2 KiB
INI

[tox]
envlist =
py{35,36,37,38,39,310}
pypy3
build
clean
cov
fmt
lint
[testenv]
deps =
.[test]
commands =
pytest {posargs}
[testenv:build]
basepython = python3.8
deps =
twine
wheel
commands =
python setup.py sdist bdist_wheel
twine check dist/*.whl dist/*.tar.gz
python setup.py clean --all
[testenv:clean]
skip_install = true
deps =
cleanpy
commands =
cleanpy --all --exclude-envs .
[testenv:cov]
deps =
.[test]
coverage[toml]
commands =
coverage run -m pytest {posargs:-vv}
coverage report -m
[testenv:fmt]
basepython = python3.8
skip_install = true
deps =
autoflake
black
isort>=5
commands =
autoflake --in-place --recursive --remove-all-unused-imports --ignore-init-module-imports --exclude ".pytype" .
isort .
black setup.py examples test subprocrunner
[testenv:lint]
basepython = python3.8
skip_install = true
deps =
codespell
mypy
pylama
pytype
commands =
python setup.py check
mypy subprocrunner
pytype --keep-going --jobs 2 --disable import-error subprocrunner
codespell subprocrunner examples test README.rst -q 2 --check-filenames
pylama