-
Notifications
You must be signed in to change notification settings - Fork 9
/
tox.ini
41 lines (36 loc) · 1.1 KB
/
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]
envlist = pep8,pylint,tests
[testenv]
sitepackages = False
basepython = python2.7
#setenv = VIRTUAL_ENV={envdir}
deps = -rrequirements.txt
[testenv:pep8]
deps = pep8
commands = pep8 --repeat --show-source --ignore=E402 \
dwarf bin/dwarf bin/dwarf-manage tests
[testenv:pylint]
deps = {[testenv]deps}
pylint
webtest
xmltodict
commands = pylint --reports=n --ignored-classes=_Config \
--disable=C0103 --disable=C0111 --disable=C0411 --disable=C0413 \
--disable=I0011 \
--disable=R0201 --disable=R0801 --disable=R0903 --disable=R0913 \
--disable=R0902 --disable=R0904 --disable=R0912 --disable=R0914 \
--disable=W0142 --disable=W0511 \
dwarf bin/dwarf bin/dwarf-manage tests
[testenv:tests]
deps = {[testenv]deps}
nose
python-glanceclient
python-novaclient
python-openstackclient
webtest
xmltodict
commands = nosetests {posargs:tests/}
[testenv:coverage]
deps = {[testenv:tests]deps}
coverage
commands = nosetests --with-coverage --cover-package {posargs:dwarf tests/}