-
Notifications
You must be signed in to change notification settings - Fork 29
/
tox.ini
54 lines (47 loc) · 1.36 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
[tox]
minversion = 3.10
envlist = py310,py39,py38
[testenv]
usedevelop = True
deps =
-r{toxinidir}/requirements-dev.txt
commands =
pytest
allowlist_externals = rm
[testenv:docs]
commands =
sphinx-build -W --keep-going -j auto {posargs} example_docs/docs/ example_docs/docs/_build
[testenv:clean]
skip_install = true
deps =
commands =
rm -rf \
{toxinidir}/example_docs/docs/jupyter_execute/ \
{toxinidir}/example_docs/docs/stubs/ \
{toxinidir}/example_docs/docs/_build \
{toxinidir}/example_docs/docs/_pytorch_build \
{toxinidir}/example_docs/docs/_qiskit_build \
{toxinidir}/docs_guide/_build
[testenv:docs-guide]
deps =
-r{toxinidir}/requirements-dev.txt
-r{toxinidir}/docs_guide/requirements-extra.txt
commands = sphinx-build -b html -W --keep-going -j auto {posargs} docs_guide/ docs_guide/_build/html
[testenv:doctest]
deps =
-r{toxinidir}/requirements-dev.txt
-r{toxinidir}/docs_guide/requirements-extra.txt
commands = sphinx-build -b doctest -W --keep-going -j auto {posargs} docs_guide/ docs_guide/_build/doctest
[testenv:fmt]
deps =
-r requirements-dev.txt
commands =
black docs_guide/ example_docs/ src/ tests/
isort docs_guide/ example_docs/ src/ tests/
[testenv:lint]
deps =
-r requirements-dev.txt
commands =
black --check docs_guide/ example_docs/ src/ tests/
isort --check docs_guide/ example_docs/ src/ tests/
mypy src/