[tox] minversion = 1.6 envlist = py27,py34,pep8 skipsdist = True [testenv] usedevelop = True install_command = pip install -U --force-reinstall {opts} {packages} setenv = VIRTUAL_ENV={envdir} deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = python setup.py test --slowest --testr-args='{posargs}' [testenv:pep8] sitepackages = False commands = flake8 {posargs} [testenv:cover] setenv = VIRTUAL_ENV={envdir} commands = python setup.py testr --coverage --testr-args='{posargs}' [testenv:venv] commands = {posargs} [testenv:docs] commands = python setup.py build_sphinx [flake8] # E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126 ignore = E125 exclude = .venv,.git,.tox,dist,doc,*egg,build