-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
tox_3.8.ini
79 lines (70 loc) · 1.25 KB
/
tox_3.8.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
[tox]
envlist = linters,typecheck,unit-tests,coverage
requires =
tox>=4
skipsdist=True
[testenv]
extras = tweedledum
deps =
sympy
numpy
matplotlib
qiskit
qiskit-aer
scipy
pyqrack
qiskit-qrack-provider
pandas
tweedledum
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}
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}