30 lines
663 B
INI
30 lines
663 B
INI
[tox]
|
|
minversion = 2.0
|
|
envlist = pep8,py27
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
whitelist_externals = true
|
|
commands = true
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 {posargs}
|
|
|
|
[testenv:py27]
|
|
deps = {[testenv]deps}
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
[flake8]
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
# H101 - Don't force author's name on TODOs
|
|
# H304 is "No relative imports" error, required for extensions
|
|
show-source = True
|
|
ignore = E123,E125,H101,H304
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|