forked from qiskit-community/qiskit-dynamics
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
44 lines (37 loc) · 889 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
41
42
43
44
[tox]
minversion = 2.1
envlist = py39,py38,py37,py310,lint
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -c{toxinidir}/constraints.txt -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
QISKIT_SUPPRESS_PACKAGING_WARNINGS=Y
deps = -r{toxinidir}/requirements-dev.txt
commands = stestr run {posargs}
[testenv:jax]
deps =
-r{toxinidir}/requirements-dev.txt
jax
jaxlib
[testenv:lint]
deps =
-r{toxinidir}/requirements-dev.txt
jax
jaxlib
commands =
black --check {posargs} qiskit_dynamics test
pylint -rn -j 0 --rcfile={toxinidir}/.pylintrc qiskit_dynamics/ test/
[testenv:black]
deps = black
commands = black {posargs} qiskit_dynamics test
[testenv:docs]
deps =
-r{toxinidir}/requirements-dev.txt
jax
jaxlib
commands =
sphinx-build -b html -W {posargs} docs/ docs/_build/html
[pycodestyle]
max-line-length = 100