-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
45 lines (39 loc) · 1000 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
43
44
45
[tox]
envlist = py39,pep8,pylint
[testenv]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-test.txt
whitelist_externals =
rm
setenv = VIRTUAL_ENV={envdir}
EVENTLET_NO_GREENDNS=yes
commands =
py.test {env:CI_TOX_OPTS:} --ignore=venv {posargs}
sitepackages = False
[testenv:pep8]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-test.txt
commands = flake8
[flake8]
# H307: like imports should be grouped together
ignore = H307
show-source = True
exclude=venv,.git,.tox,dist,build,.eggs
application-import-names=kylin
[testenv:pylint]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-test.txt
commands =
pylint {posargs} kylin
[testenv:coverage]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-test.txt
commands =
py.test {env:CI_TOX_OPTS:} --ignore=venv --cov=kylin {posargs}
# [testenv:docs]
# deps = sphinx
# commands = python setup.py build_sphinx