forked from qiskit-community/qiskit-qec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
40 lines (36 loc) · 863 Bytes
/
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
[tox]
minversion = 3.6
envlist = py38, py39, py310, py311, lint, coverage
skipsdist = False
[testenv]
usedevelop = true
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
LANGUAGE=en_US
LC_ALL=en_US.utf-8
deps = -r requirements.txt
-r requirements-dev.txt
commands =
pip check
python -m unittest discover -s test/ -p '*test*.py' -v
[testenv:lint]
sitepackages = False
commands =
black --version
black --check --diff src/qiskit_qec intern test setup.py
pylint -ry src/qiskit_qec test
[testenv:coverage]
basepython = python3
setenv =
{[testenv]setenv}
commands =
coverage3 run -m unittest discover test
coverage3 report --fail-under=55
[testenv:docs]
deps =
-r{toxinidir}/requirements-dev.txt
jax
jaxlib
commands =
sphinx-build -b html -W -T --keep-going {posargs} docs/ docs/_build/html