summaryrefslogtreecommitdiffstats
path: root/tox.ini
blob: 5ed0ecca9167c36e022203a31c8337e195f0ffdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
[tox]
minversion = 1.6
skipsdist = True
envlist = py27,pep8

[testenv]
basepython=python2
usedevelop = True
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
       -r{toxinidir}/test-requirements.txt
commands =
  py.test --basetemp={envtmpdir} {posargs}
setenv =
  VIRTUAL_ENV={envdir}
  HOME = {envtmpdir}
  PYTHONPATH = {toxinidir}

[testenv:pep8]
deps = flake8
commands = flake8 {toxinidir}

[testenv:py27-cover]
commands = python setup.py testr --coverage \
    --omit='{toxinidir}/dovetail/tests*' \
    --testr-args='{posargs}'

[flake8]
show-source = True
ignore = E123,E125,H803
exclude = .tox,dist,docs,*egg,build,.venv,.git