Skip to content

Instantly share code, notes, and snippets.

@kornicameister
Created March 31, 2019 19:29
Show Gist options
  • Save kornicameister/70a09cc32f9e8957d7fb08d8288e380b to your computer and use it in GitHub Desktop.
Save kornicameister/70a09cc32f9e8957d7fb08d8288e380b to your computer and use it in GitHub Desktop.
[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