forked from ceph/cbt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
41 lines (33 loc) · 753 Bytes
/
tox.ini
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
32
33
34
35
36
37
38
39
40
41
[tox]
minversion = 1.6
skipsdist = True
envlist = py26,py27,pep8
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
# deps = -r{toxinidir}/test-requirements.txt
commands =
py.test {posargs:tests}
[tox:jenkins]
downloadcache = ~/cache/pip
[testenv:pep8]
usedevelop = False
commands =
flake8 {posargs:.}
[testenv:cover]
setenv = NOSE_WITH_COVERAGE=1
[testenv:venv]
deps = -r{toxinidir}/requirements.txt
commands = {posargs:}
[testenv:devenv]
envdir = devenv
usedevelop = True
[flake8]
ignore = E501
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,__init__.py,docs
show-pep8 = True
# show-source = True
count = True
[hacking]
import_exceptions = testtools.matchers