forked from oVirt/vdsm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
66 lines (59 loc) · 1.54 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[tox]
envlist = flake8, imports, tests, pylint
skipsdist = true
[testenv:imports]
# This must run separately from the other tests since it checks importing
# python modules with a clean python search path. The only directory allowed in
# the search path is the lib directory.
setenv =
PYTHONPATH = {toxinidir}/lib
sitepackages = True
deps =
pytest==2.9
changedir = {toxinidir}/tests
commands =
py.test -v -rxs check_imports.py
[testenv:tests]
passenv = *
# Using random hash seed expose bad tests assuming order of unorder things.
# Disabaled for now to make the build pass.
# TODO: remove this option after the failing tests are fixed.
setenv =
PYTHONHASHSEED = 0
sitepackages = True
deps =
nose==1.3.7
yappi==0.93
whitelist_externals = make
commands =
make -C tests check
[testenv:pylint]
setenv =
PYTHONPATH = vdsm:lib
sitepackages = True
deps =
pylint==1.6.4
commands =
pylint --errors-only {posargs}
[testenv:flake8]
deps =
flake8==3.0.4
commands=
flake8 --statistics {posargs} \
. \
build-aux/vercmp \
contrib/logdb \
contrib/logstat \
contrib/profile-stats \
init/daemonAdapter \
vdsm/get-conf-item \
vdsm/set-conf-item \
vdsm/storage/curl-img-wrap \
vdsm/storage/fc-scan
[flake8]
# Ignore errors in current code to make the build pass
# 31 E402 module level import not at top of file
# 25 E731 do not assign a lambda expression, use a def
# TODO: fix the code and eliminate these ignores
ignore = E402, E731
show_source = True