-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
45 lines (39 loc) · 1018 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]
minversion = 3.6
envlist = pep8,py3
ignore_basepython_conflict = True
[testenv]
basepython = python3
install_command = pip install {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
passenv =
usedevelop = True
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = stestr run {posargs}
stestr slowest
[testenv:pep8]
install_command = pip install {opts} {packages}
commands =
flake8 {posargs}
[testenv:venv]
deps =
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands = {posargs}
[testenv:docs]
deps =
-r{toxinidir}/doc/requirements.txt
commands =
sphinx-build -W --keep-going -b html doc/source/ doc/build/html
[testenv:releasenotes]
deps =
-r{toxinidir}/doc/requirements.txt
commands =
sphinx-build -W --keep-going -b html releasenotes/source releasenotes/build/html
[flake8]
ignore = E124,E125,E129,E252,E402,E741,H,W503,W504
show-source = True
exclude = .venv,.tox,dist,doc,build,*.egg,node_modules,migrations