-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
tox.ini
86 lines (77 loc) · 1.35 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
76
77
78
79
80
81
82
83
84
85
86
[tox]
envlist = linters,typecheck,unit-tests,coverage
requires =
tox>=4
skipsdist=True
[testenv]
extras = tweedledum
deps =
sympy
numpy
matplotlib
qiskit
qiskit-aer
cirq
scipy
qutip
qutip_qip
pyqrack
qiskit-qrack-provider
pandas
tweedledum
pyqubo
pennylane
pennylane-lightning
commands =
python -I -m build --wheel -C=--build-option=-- -C=--build-option=-- -C=--build-option=-j4
[testenv:coverage]
deps =
{[testenv]deps}
pytest
pytest-cov
parameterized
commands =
pytest --cov-report term-missing --cov-report html --cov-report xml --cov=qlasskit
[testenv:unit-tests]
deps =
{[testenv]deps}
pytest
parameterized
commands =
pytest #-rP
[testenv:flake8]
deps =
; {[testenv]deps}
# pep8-naming
flake8
commands =
flake8 ./qlasskit
flake8 ./test
[testenv:isort]
deps =
; {[testenv]deps}
isort
commands =
isort .
[testenv:black]
deps =
; {[testenv]deps}
black[jupyter]
commands =
black .
[testenv:typecheck]
deps =
; {[testenv]deps}
mypy
types-setuptools
commands =
mypy --check-untyped-defs qlasskit
[testenv:linters]
deps =
{[testenv:isort]deps}
{[testenv:black]deps}
{[testenv:flake8]deps}
commands =
{[testenv:isort]commands}
{[testenv:black]commands}
{[testenv:flake8]commands}