forked from openstack-archive/bandit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
82 lines (69 loc) · 2.17 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
70
71
72
73
74
75
76
77
78
79
80
81
82
[tox]
minversion = 2.0
envlist = py35,py27,pep8
skipsdist = True
[testenv]
usedevelop = True
install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
BRANCH_NAME=master
CLIENT_NAME=bandit
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
coverage erase
python setup.py testr --coverage --slowest --testr-args='{posargs}'
coverage report -m
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
[testenv:debug]
commands = oslo_debug_helper -t tests {posargs}
[testenv:linters]
usedevelop = False
deps = {[testenv:pep8]deps}
commands = flake8 {posargs} bandit
flake8 {posargs} tests
bandit-baseline -r bandit -ll -ii
[testenv:pep8]
usedevelop = False
deps = {[testenv]deps}
.
commands = flake8 {posargs} bandit
flake8 {posargs} tests
{[testenv:pylint]commands}
bandit-baseline -r bandit -ll -ii
[testenv:venv]
commands = {posargs}
[testenv:codesec]
usedevelop = False
deps = {[testenv]deps}
.
commands = bandit-baseline -r bandit -ll -ii
[testenv:cover]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
python setup.py testr --coverage --testr-args='{posargs}'
coverage report
[testenv:openstack_coverage]
deps = PyYAML>=3.1.0
requests>=2.7.0
commands = python tools/openstack_coverage.py
[testenv:integration]
passenv = REPO_ROOT
whitelist_externals = bash
commands = bash scripts/integration-test.sh {posargs}
[testenv:docs]
commands=
python setup.py build_sphinx
[flake8]
# [H106] Don't put vim configuration in source files.
# [H203] Use assertIs(Not)None to check for None.
show-source = True
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,releasenotes
enable-extensions = H106,H203
[testenv:releasenotes]
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:pylint]
commands = pylint --rcfile=pylintrc bandit