-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
75 lines (67 loc) · 1.47 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
[tox]
minversion = 4.0
envlist = py{39,310,311,312}{,-notebook}, lint, coverage, docs, doctest
isolated_build = True
[testenv]
extras =
test
commands =
pytest {posargs}
passenv =
QISKIT_IBM_URL
QISKIT_IBM_TOKEN
QISKIT_IBM_INSTANCE
[testenv:style]
extras =
style
commands =
ruff format povm_toolbox/ docs/ test/
ruff check --fix povm_toolbox/ docs/ test/
[testenv:lint]
basepython = python3.10
extras =
lint
commands =
ruff format --check povm_toolbox/ docs/ test/
ruff check povm_toolbox/ docs/ test/
mypy povm_toolbox/
pylint -rn povm_toolbox/ test/
nbqa pylint -rn docs/
ruff check --preview --extend-select CPY001 povm_toolbox/ test/
ruff check --select D --ignore D406,D407 povm_toolbox/
typos
reno lint
[testenv:{,py-,py3-,py39-,py310-,py311-,py312-}notebook]
extras =
nbtest
notebook-dependencies
commands =
pytest --nbmake --nbmake-timeout=3000 {posargs} docs/
[testenv:doctest]
basepython = python3.10
extras =
test
doctest
commands =
pytest --doctest-plus --doctest-only
[testenv:coverage]
basepython = python3.10
deps =
coverage>=7.4.1
extras =
test
doctest
commands =
pytest --doctest-modules --doctest-plus --cov=povm_toolbox/
[testenv:docs]
basepython = python3.10
extras =
docs
commands =
sphinx-build -j auto -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/