forked from openstack/virtualbmc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
50 lines (43 loc) · 1.07 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
[tox]
minversion = 3.18.0
skipsdist = True
envlist = py3,pep8
ignore_basepython_conflict=true
[testenv]
basepython = python3
setenv = VIRTUAL_ENV={envdir}
PYTHONDONTWRITEBYTECODE = 1
LANGUAGE=en_US
LC_ALL=en_US.UTF-8
TESTS_DIR=./shipmi/tests/unit/
deps = -r{toxinidir}/test-requirements.txt
{toxinidir}
commands =
stestr run {posargs}
stestr slowest
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
[testenv:pep8]
deps=
pycodestyle>=2.8.0 # MIT
doc8>=0.10.1 # Apache-2.0
commands =
pycodestyle {posargs}
doc8 README.rst CONTRIBUTING.rst
[testenv:venv]
commands = {posargs}
[testenv:cover]
setenv = {[testenv]setenv}
PYTHON=coverage run --source shipmi --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
[testenv:debug]
commands = oslo_debug_helper {posargs}
[doc8]
max-line-length = 120
[pycodestyle]
filename = *.py
exclude = venv/*,.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
max-line-length = 120