-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
69 lines (56 loc) · 1.87 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
67
68
69
[tox]
minversion = 1.6
skipsdist = True
envlist = py26,py27,py33,py34,pep8,sample_config
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
# FIXME(dolph): overriding the hash seed with a constant is a
# workaround for bug 1348818
PYTHONHASHSEED=0
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
whitelist_externals = bash
[testenv:py33]
deps = -r{toxinidir}/requirements-py3.txt
-r{toxinidir}/test-requirements-py3.txt
nose
commands =
nosetests --with-coverage --cover-package=keystone_spassword \
--exclude keystone_spassword/tests/unit
[testenv:py34]
deps = -r{toxinidir}/requirements-py3.txt
-r{toxinidir}/test-requirements-py3.txt
nose
commands =
nosetests --with-coverage --cover-package=keystone_spassword \
--exclude keystone_spassword/tests/unit
[testenv:pep8]
commands =
flake8 {posargs}
[tox:jenkins]
downloadcache = ~/cache/pip
[testenv:cover]
commands = python setup.py testr --coverage --testr-args='{posargs}'
[testenv:venv]
commands = {posargs}
[testenv:debug]
commands = oslo_debug_helper.sh {posargs}
[flake8]
filename= *.py
show-source = true
# H104 File contains nothing but comments
# H405 multi line docstring summary not separated with an empty line
# H803 Commit message should not end with a period (do not remove per list discussion)
# H904 Wrap long lines in parentheses instead of a backslash
ignore = H104,H405,H803,H904
builtins = _
exclude=.venv,.git,.tox,build,dist,doc,*openstack/common*,*lib/python*,*egg,tools,vendor,.update-venv,*.ini,*.po,*.pot
[testenv:sample_config]
commands = {toxinidir}/tools/config/generate_sample.sh
[hacking]
import_exceptions =
keystone.i18n
local-check-factory = keystone.hacking.checks.factory