-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
60 lines (51 loc) · 1.5 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
[tox]
minversion = 1.8
envlist = pep8,py27,pylint
skipsdist = True
[testenv]
setenv = VIRTUAL_ENV={envdir}
usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
whitelist_externals =
/usr/bin/find
/bin/rm
commands =
find . -type f -name "*.pyc" -delete
rm -rf .testrepository/times.dbm
ostestr {posargs} tatu/tests
[testenv:pep8]
commands =
flake8 {posargs} .
# {[testenv:genconfig]commands}
[testenv:genconfig]
sitepackages = False
envdir = {toxworkdir}/pep8
commands = oslo-config-generator --config-file=etc/oslo-config-generator/tatu.ini
[testenv:venv]
install_command = pip install -U --force-reinstall {opts} {packages}
commands = {posargs}
[testenv:debug]
commands = oslo_debug_helper {posargs}
[testenv:cover]
commands =
python setup.py testr --coverage
coverage report
[testenv:bandit]
# Skip B104 hardcoded_bind_all_interfaces
deps = -r{toxinidir}/test-requirements.txt
commands = bandit -r tatu -n5 -x tests -ll -s B104
[flake8]
# Following checks are ignored on purpose.
# H301 one import per line
# E251 unexpected spaces around keyword / parameter equals
ignore = E251,D100,D101,D102,D202,D208,H301
exclude = .git,.venv,.tox,dist,tools,doc,*egg,build
max-complexity=30
[testenv:pylint]
deps =
{[testenv]deps}
pylint
commands =
pylint --rcfile=pylintrc --output-format=colorized tatu