forked from qiskit-community/qiskit-braket-provider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
44 lines (39 loc) · 1.03 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
[tox]
minversion = 2.1
envlist = py37, py38, py39, py310, lint, coverage, docs
skipsdist = true
[testenv]
usedevelop = true
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
LANGUAGE=en_US
LC_ALL=en_US.utf-8
deps = -rrequirements.txt
-rrequirements-dev.txt
commands =
pip check
python -m unittest -v
[testenv:lint]
envdir = .tox/lint
commands =
black --check {posargs} .
pylint -rn qiskit_braket_provider tests
nbqa pylint docs/ --disable=pointless-statement,missing-module-docstring,invalid-name,expression-not-assigned,duplicate-code,import-error
mypy --install-types --non-interactive .
[testenv:black]
envdir = .tox/lint
commands = black {posargs} .
[testenv:coverage]
basepython = python3
setenv =
{[testenv]setenv}
commands =
coverage3 run --source qiskit_braket_provider --parallel-mode -m pytest
coverage3 combine
coverage3 report --fail-under=80
[testenv:docs]
deps =
-r{toxinidir}/requirements-dev.txt
commands =
sphinx-build -b html -W {posargs} docs/ docs/_build/html