Skip to content

Instantly share code, notes, and snippets.

@justdoit0823
Last active October 26, 2017 07:42
Show Gist options
  • Save justdoit0823/5c137095bf54d6ddb1fa2cbca14d9d5c to your computer and use it in GitHub Desktop.
Save justdoit0823/5c137095bf54d6ddb1fa2cbca14d9d5c to your computer and use it in GitHub Desktop.
A simple Python automation config file with tox.
[tox]
skipsdist = True
envlist =
3.6-unit
flake8
pydocstyle
pyflakes
[testenv]
deps=
-r{toxinidir}/requirements.txt
flake8: flake8==2.6.0
pydocstyle: pydocstyle==2.0.0
pyflakes: pyflakes==1.2.3
sitepackages = False
recreate = False
commands =
unit: pytest -xv
basepython =
3.6: python3.6
flake8,pydocstyle,pyflakes: python3.6
[testenv:flake8]
commands =
flake8 --ignore=F401,F403 --max-line-length=80 {toxinidir}
[testenv:pydocstyle]
commands =
pydocstyle {toxinidir}
[testenv:pyflakes]
commands =
pyflakes {toxinidir}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment