-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
41 lines (35 loc) · 775 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
[tox]
skipsdist = True
envlist = py36,py27,pep8,docs
[travis]
python =
2.7: py27
3.6: py36, pep8, docs
[testenv]
usedevelop = True
whitelist_externals = bash
python
setenv = VIRTUAL_ENV={envdir}
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_LOG_CAPTURE=1
OS_TEST_TIMEOUT=160
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
stestr run --serial {posargs}
[testenv:pep8]
commands =
flake8 {posargs:gerritclient}
doc8 docs/source
[testenv:venv]
commands =
{posargs:}
[testenv:docs]
commands =
python setup.py build_sphinx
[flake8]
show-pep8 = True
show-source = True
count = True
exclude=.venv,.git,.tox,dist,docs,*lib/python*,*egg,build,__init__.py