2012-02-29 16:42:26 -05:00
|
|
|
[tox]
|
2013-09-05 09:57:31 -07:00
|
|
|
envlist = py26,py27,py33,pypy,pep8
|
2013-12-09 14:27:57 +00:00
|
|
|
minversion = 1.6
|
|
|
|
skipsdist = True
|
2012-02-29 16:42:26 -05:00
|
|
|
|
|
|
|
[testenv]
|
2013-12-09 14:27:57 +00:00
|
|
|
usedevelop = True
|
|
|
|
install_command = pip install -U {opts} {packages}
|
2012-02-29 14:14:14 -08:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2012-12-24 22:50:58 -06:00
|
|
|
LANG=en_US.UTF-8
|
|
|
|
LANGUAGE=en_US:en
|
|
|
|
LC_ALL=C
|
|
|
|
OS_STDOUT_NOCAPTURE=False
|
|
|
|
OS_STDERR_NOCAPTURE=False
|
|
|
|
|
2013-05-29 17:23:30 +08:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2012-12-24 22:50:58 -06:00
|
|
|
commands = python setup.py testr --testr-args='{posargs}'
|
2012-02-29 14:14:14 -08:00
|
|
|
|
2012-06-07 14:51:29 -07:00
|
|
|
[testenv:pep8]
|
2013-05-18 08:29:02 -07:00
|
|
|
commands = flake8
|
2012-02-29 14:14:14 -08:00
|
|
|
|
2012-06-07 14:51:29 -07:00
|
|
|
[testenv:venv]
|
2012-02-29 14:14:14 -08:00
|
|
|
commands = {posargs}
|
2012-12-24 22:50:58 -06:00
|
|
|
|
|
|
|
[testenv:cover]
|
|
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
|
|
|
|
[tox:jenkins]
|
|
|
|
downloadcache = ~/cache/pip
|
2013-05-18 08:29:02 -07:00
|
|
|
|
|
|
|
[flake8]
|
2013-08-05 18:03:37 -03:00
|
|
|
# H233 Python 3.x incompatible use of print operator
|
2013-06-09 11:07:27 +02:00
|
|
|
# H302 import only modules
|
|
|
|
# H303 no wildcard import
|
|
|
|
# H404 multi line docstring should start with a summary
|
2013-12-16 15:28:05 +01:00
|
|
|
ignore = F403,F841,F812,F821,H233,H302,H303,H404
|
2013-05-18 08:29:02 -07:00
|
|
|
show-source = True
|
2013-07-05 17:05:49 -04:00
|
|
|
exclude = .venv,.tox,dist,doc,*egg,build
|