-
Notifications
You must be signed in to change notification settings - Fork 210
/
tox.ini
52 lines (47 loc) · 1.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
[tox]
minversion = 3.15
envlist = py39, lint, docs
[testenv]
usedevelop = true
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
LANGUAGE=en_US
QISKIT_METAL_HEADLESS=1
LC_ALL=en_US.utf-8
commands =
pip check
python -m unittest -v
[testenv:lint]
basepython = python3.9
skip_install = true
deps =
pylint
ipython
yapf
commands =
yapf --diff --recursive --style {toxinidir}/.style.yapf qiskit_metal
# pylint -rn --rcfile={toxinidir}/.pylintrc qiskit_metal
[testenv:docs]
basepython = python3.9
envdir = .tox/docs
passenv = DOCS_FROM_MASTER, QISKIT_DOCS_BUILD_TUTORIALS
deps =
-r requirements-dev.txt
allowlist_externals=touch
commands =
touch {toxinidir}/docs/.buildingdocs
sphinx-build -b html {posargs} {toxinidir}/docs/ {toxinidir}/docs/_build/html
[testenv:gettext]
basepython = python3.9
envdir = .tox/docs
deps =
-r requirements-dev.txt
commands =
sphinx-build -b gettext docs/ docs/_build/gettext {posargs}
sphinx-intl -c docs/conf.py update -p docs/_build/gettext -l en -d docs/locale
[testenv:docs-clean]
skip_install = true
deps =
allowlist_externals = rm
commands = rm -rf {toxinidir}/docs/stubs/ {toxinidir}/docs/_build