File: tox.ini

package info (click to toggle)
glare 0.5.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,664 kB
  • sloc: python: 15,645; sh: 237; makefile: 59
file content (74 lines) | stat: -rw-r--r-- 2,009 bytes parent folder | download
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
[tox]
minversion = 1.6
envlist = py27,pep8,py35
skipsdist = True

[testenv]
setenv = VIRTUAL_ENV={envdir}
         PYTHONDONTWRITEBYTECODE = 1
         LANGUAGE=en_US
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
commands =
           /bin/rm -f .testrepository/times.dbm
           ostestr --slowest {posargs}
whitelist_externals = bash
passenv = *_proxy *_PROXY

[testenv:debug]
commands = oslo_debug_helper {posargs}

[testenv:debug-py27]
basepython = python2.7
commands = oslo_debug_helper {posargs}

[testenv:debug-py35]
basepython = python3.5
commands = oslo_debug_helper {posargs}

[testenv:pep8]
commands =
  flake8 {posargs}
  # Run security linter
  bandit -c bandit.yaml -r glare -n5 -p gate

[testenv:cover]
basepython = python2.7
setenv = VIRTUAL_ENV={envdir}
commands =
    coverage erase
    python setup.py testr --coverage --testr-args='^(?!.*test.*coverage).*$' --omit="*/test*"

[testenv:venv]
commands = {posargs}

[testenv:genconfig]
commands =
  oslo-config-generator --config-file etc/oslo-config-generator/glare.conf

[testenv:genpolicy]
sitepackages = False
envdir = {toxworkdir}/venv
commands =
  oslopolicy-sample-generator --namespace=glare --output-file=etc/policy.yaml.sample

[testenv:docs]
basepython = python2.7
commands = python setup.py build_sphinx

[testenv:bandit]
commands = bandit -c bandit.yaml -r glare -n5 -p gate

[flake8]
# TODO(dmllr): Analyze or fix the warnings blacklisted below
# H404  multi line docstring should start with a summary
# H405  multi line docstring summary not separated with an empty line
ignore = H404,H405
exclude = .venv,.git,.tox,dist,doc,etc,*glare/locale*,*lib/python*,*egg,build
# H904 Delay string interpolations at logging calls.
enable-extensions = H106,H203,H904

[hacking]
local-check-factory = glare.hacking.checks.factory
import_exceptions = glare.i18n