File: tox.ini

package info (click to toggle)
python-reno 2.11.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 696 kB
  • sloc: python: 4,682; makefile: 19; sh: 10
file content (57 lines) | stat: -rw-r--r-- 1,312 bytes parent folder | download | duplicates (2)
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
[tox]
minversion = 1.6
envlist = py35,py27,pep8

[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
   VIRTUAL_ENV={envdir}
deps =
    -r{toxinidir}/test-requirements.txt
    .[sphinx]
commands =
    python setup.py test --slowest --coverage --coverage-package-name=reno --testr-args='{posargs}'
    coverage report --show-missing

[testenv:pep8]
basepython = python3
commands =
  flake8
  reno -q lint

[testenv:lower-constraints]
basepython = python3
deps =
  -c{toxinidir}/lower-constraints.txt
  {[testenv]deps}

[testenv:venv]
basepython = python3
commands = {posargs}

[testenv:cover]
basepython = python3
commands = python setup.py test --coverage --testr-args='{posargs}'

[testenv:docs]
# NOTE(dhellmann): Build our own documentation using the
# lower-constraints list as a hacky way to test the sphinx extension
# module, since we don't have separate unit tests for it.
deps =
  -c{toxinidir}/lower-constraints.txt
  {[testenv]deps}
basepython = python3
commands = sphinx-build -a -W -E -b html doc/source doc/build/html

[testenv:debug]
basepython = python3
commands = oslo_debug_helper {posargs}

[flake8]
# E123, E125 skipped as they are invalid PEP-8.

show-source = True
ignore = E123,E125
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build