forked from qiskit-community/qiskit-cold-atom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
43 lines (37 loc) · 1015 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
[tox]
minversion = 3.3.0
envlist = py310,py39,py38,py37,lint
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
QISKIT_SUPPRESS_PACKAGING_WARNINGS=Y
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands = stestr run {posargs}
[testenv:lint]
envdir = .tox/lint
commands =
black --check {posargs} qiskit_cold_atom test
pylint -rn -j 0 --rcfile={toxinidir}/.pylintrc qiskit_cold_atom/ test/
python tools/verify_headers.py
[testenv:black]
commands = black {posargs} qiskit_cold_atom test
[testenv:docs]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
.[ffsim]
commands =
sphinx-build -j auto -b html -W {posargs} docs/ docs/_build/html
[testenv:docs-clean]
skip_install = true
deps =
allowlist_externals = rm
commands = rm -rf {toxinidir}/docs/stubs/ {toxinidir}/docs/_build
[testenv:ffsim]
deps = .[ffsim]
commands = python -m unittest test/test_ffsim_backend.py