Created
March 31, 2019 19:29
-
-
Save kornicameister/70a09cc32f9e8957d7fb08d8288e380b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tox] | |
envlist = yapf,flake8,mypy | |
[testenv] | |
usedevelop = True | |
setenv = VIRTUAL_ENV={envdir} | |
passenv = *_proxy | |
*_PROXY | |
whitelist_externals = bash | |
find | |
rm | |
install_command = pip install {opts} {packages} | |
deps = | |
-r{toxinidir}/test-requirements.txt | |
commands = | |
find ./ -type f -name '*.pyc' -delete | |
[testenv:yapf] | |
commands = | |
{[testenv]commands} | |
yapf --diff --recursive {toxinidir}/ksc | |
[testenv:flake8] | |
commands = | |
{[testenv]commands} | |
flake8 --config {toxinidir}/.flake8 {toxinidir}/ksc | |
[testenv:mypy] | |
commands = | |
{[testenv]commands} | |
mypy --config-file {toxinidir}/mypy.ini {toxinidir}/ksc | |
[testenv:venv] | |
commands = {posargs} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment