Last active
October 26, 2017 07:42
-
-
Save justdoit0823/5c137095bf54d6ddb1fa2cbca14d9d5c to your computer and use it in GitHub Desktop.
A simple Python automation config file with tox.
This file contains hidden or 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] | |
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