forked from qiskit-community/qiskit-experiments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
107 lines (96 loc) · 2.62 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[tox]
minversion = 3.3.0
envlist = py311,py310,py39,py38,lint
isolated_build = true
[testenv]
usedevelop = True
install_command = pip install -c{toxinidir}/constraints.txt -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
QISKIT_SUPPRESS_PACKAGING_WARNINGS=Y
deps =
-r{toxinidir}/requirements-dev.txt
-r{toxinidir}/requirements-extras.txt
passenv =
OMP_NUM_THREADS
QISKIT_PARALLEL
RAYON_NUM_THREADS
QISKIT_IBM_*
commands = stestr run {posargs}
[testenv:cover]
basepython = python3
setenv =
{[testenv]setenv}
PYTHON=coverage3 run --source qiskit_experiments --parallel-mode
commands =
stestr run {posargs}
coverage3 combine
coverage3 lcov
[testenv:terra-main]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
QISKIT_SUPPRESS_PACKAGING_WARNINGS=Y
deps =
git+https://github.com/Qiskit/qiskit-terra
-r{toxinidir}/requirements-dev.txt
-r{toxinidir}/requirements-extras.txt
passenv =
OMP_NUM_THREADS
QISKIT_PARALLEL
RAYON_NUM_THREADS
QISKIT_IBM_*
commands = stestr run {posargs}
[testenv:lint]
envdir = .tox/lint
commands =
black --check {posargs} qiskit_experiments test tools setup.py
pylint -rn -j 0 --rcfile={toxinidir}/.pylintrc qiskit_experiments/ test/ tools/
python {toxinidir}/tools/verify_headers.py
[testenv:lint-incr]
envdir = .tox/lint
basepython = python3
allowlist_externals = git
commands =
black --check {posargs} qiskit_experiments test tools setup.py
-git fetch -q https://github.com/Qiskit-Extensions/qiskit-experiments :lint_incr_latest
python {toxinidir}/tools/pylint_incr.py -rn -j4 -sn --paths :/qiskit_experiments/*.py :/test/*.py :/tools/*.py
python {toxinidir}/tools/verify_headers.py qiskit_experiments test tools
[testenv:black]
envdir = .tox/lint
commands = black {posargs} qiskit_experiments test tools setup.py
[testenv:docs]
usedevelop = False
passenv =
EXPERIMENTS_DEV_DOCS
FULL_TOCTREE
RELEASE_STRING
VERSION_STRING
commands =
sphinx-build -T -W --keep-going -b html {posargs} docs/ docs/_build/html
[testenv:docs-parallel]
usedevelop = False
passenv =
EXPERIMENTS_DEV_DOCS
FULL_TOCTREE
RELEASE_STRING
VERSION_STRING
commands =
sphinx-build -j auto -T -W --keep-going -b html {posargs} docs/ docs/_build/html
[testenv:docs-minimal]
usedevelop = False
passenv =
EXPERIMENTS_DEV_DOCS
FULL_TOCTREE
RELEASE_STRING
VERSION_STRING
setenv =
QISKIT_DOCS_SKIP_EXECUTE = 1
commands =
sphinx-build -T -W --keep-going -b html {posargs} docs/ docs/_build/html
[testenv:docs-clean]
skip_install = true
deps =
allowlist_externals = rm
commands = rm -rf {toxinidir}/docs/stubs/ {toxinidir}/docs/_build