forked from qiskit-community/quantum-prototype-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
53 lines (47 loc) · 1.3 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
[tox]
minversion = 2.1
envlist = py38, py39, py310, lint, coverage
# CI: skip-next-line
skip_missing_interpreters = true
[testenv]
# CI: skip-next-line
usedevelop = true
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
LANGUAGE=en_US
LC_ALL=en_US.utf-8
extras = dev
commands =
pip check
python -m pytest -v --doctest-modules
treon docs --threads 2
[testenv:lint]
envdir = .tox/lint
extras = dev
commands =
black --check .
pylint -rn vqls_prototype tests --disable=C0200,C0103,W4902,C0116,E1101,C0103,C0115,R0902,R0913,R0903,R0914,C0412,W0621,W0246,C0114,R0801,R0917
nbqa pylint -rn docs/ --disable=C0200,C0103,W4902,C0116,E1101,C0103,C0115,R0902,R0913,R0903,R0914,C0412,W0621,W0246,C0114,C0413,C0411,W0212,W0611,R0801,E0401,W0702
mypy .
[testenv:black]
envdir = .tox/lint
skip_install = true
commands = black .
[testenv:coverage]
basepython = python3
setenv =
{[testenv]setenv}
commands =
coverage3 run --source vqls_prototype --parallel-mode -m pytest --doctest-modules
coverage3 combine
coverage3 report --fail-under=80
[testenv:docs]
skip_install = false
extras = dev
commands =
sphinx-build -b html -T --keep-going {posargs} docs/ docs/_build/html
[testenv:ecosystem]
allowlist_externals = /bin/bash
commands =
/bin/bash -ec 'cat ecosystem.json | jq empty'