forked from ceph/cbt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
42 lines (34 loc) · 783 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
42
[tox]
minversion = 1.6
skipsdist = True
envlist = py3,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
deps = flake8
commands =
flake8 --config=tox.ini {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
statistics = True
[hacking]
import_exceptions = testtools.matchers