-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtox.ini
57 lines (52 loc) · 1.03 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
[tox]
minversion = 4.0
envlist = py{39,310,311,312}, lint, docs
isolated_build = True
[testenv]
passenv =
SSH_AUTH_SOCK
deps =
.[dev]
commands =
pytest {posargs}
[testenv:style]
deps =
.[style]
allowlist_externals =
ruff
commands =
ruff format qiskit_addon_dice_solver/
ruff check --fix qiskit_addon_dice_solver/
[testenv:lint]
basepython = python3.11
deps =
.[style]
.[lint]
allowlist_externals =
ruff
pydocstyle
mypy
pylint
reno
commands =
ruff format --check qiskit_addon_dice_solver/
ruff check qiskit_addon_dice_solver/
pydocstyle qiskit_addon_dice_solver/
mypy qiskit_addon_dice_solver/
pylint -rn qiskit_addon_dice_solver/
reno lint
[testenv:docs]
basepython = python3.11
deps =
.[dev]
.[docs]
allowlist_externals =
sphinx-build
commands =
sphinx-build -j auto -W -T --keep-going -b html {posargs} {toxinidir}/docs/ {toxinidir}/docs/_build/html
[testenv:docs-clean]
skip_install = true
allowlist_externals =
rm
commands =
rm -rf {toxinidir}/docs/stubs/ {toxinidir}/docs/_build/