2016-03-20 18:43:48 +00:00
|
|
|
# Tox (http://tox.testrun.org/) is a tool for running tests
|
|
|
|
# in multiple virtualenvs. This configuration file will run the
|
|
|
|
# test suite on all supported python versions. To use it, "pip install tox"
|
|
|
|
# and then run "tox" from this directory.
|
|
|
|
|
|
|
|
[tox]
|
|
|
|
envlist = py27, py35
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
commands = py.test --cov=dosage --cov=dosagelib --tb=short -n10
|
2016-03-20 19:32:08 +00:00
|
|
|
passenv = TRAVIS
|
2016-03-20 18:43:48 +00:00
|
|
|
# Also install optional dependencies for tests.
|
|
|
|
deps =
|
2016-04-10 01:47:01 +00:00
|
|
|
-r{toxinidir}/requirements.txt
|
2016-03-20 18:43:48 +00:00
|
|
|
pytest-xdist
|
|
|
|
pytest-cov
|
2016-03-20 18:53:43 +00:00
|
|
|
pytest-travis-fold
|
2016-03-20 18:43:48 +00:00
|
|
|
cssselect
|
|
|
|
Pillow
|
2016-04-10 01:47:01 +00:00
|
|
|
|
|
|
|
[flake8]
|
|
|
|
# we aim for 79, but this suppresses warnings for now...
|
|
|
|
max-line-length = 120
|
|
|
|
ignore = E121,E126,E241
|
|
|
|
exclude = build
|