forked from qiskit-community/qiskit-aqua
-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
48 lines (43 loc) · 1.4 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
[tox]
minversion = 2.1
envlist = py36, py37, py38, py39, lint
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -c constraints.txt -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
LANGUAGE=en_US
LC_ALL=en_US.utf-8
ARGS="-V"
deps = https://github.com/Qiskit/qiskit-terra/archive/master.zip
https://github.com/Qiskit/qiskit-ignis/archive/master.zip
https://github.com/Qiskit/qiskit-aer/archive/master.zip
-r{toxinidir}/requirements-dev.txt
commands =
stestr run {posargs}
[testenv:lint]
basepython = python3
commands =
pycodestyle qiskit/aqua qiskit/chemistry qiskit/finance qiskit/ml qiskit/optimization test tools
pylint -rn --ignore=gauopen qiskit/aqua qiskit/chemistry qiskit/finance qiskit/ml qiskit/optimization test tools
mypy qiskit test tools
python3 {toxinidir}/tools/check_copyright.py -path {toxinidir}
[testenv:coverage]
basepython = python3
setenv =
{[testenv]setenv}
PYTHON=coverage3 run --source qiskit/aqua,qiskit/chemistry,qiskit/finance,qiskit/ml,qiskit/optimization --omit */gauopen/* --parallel-modes
commands =
stestr run {posargs}
coverage3 combine
coverage3 report
[testenv:docs]
basepython = python3
commands =
sphinx-build -b html -W {posargs} docs/ docs/_build/html
[pycodestyle]
exclude = gauopen
# default ignores + E741
ignore = E121, E123, E126, E133, E226, E241, E242, E704, W503, W504, W505, E741
max-line-length = 100