-
Notifications
You must be signed in to change notification settings - Fork 10
/
tox.ini
41 lines (37 loc) · 962 Bytes
/
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
[tox]
# Sets this min.version because of differences with env_tmp_dir env.
minversion = 4.0.2
envlist = py38, py39, py310, py311, lint
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -c constraints.txt -U {opts} {packages}
passenv = *
setenv =
VIRTUAL_ENV={envdir}
LANGUAGE=en_US
LC_ALL=en_US.utf-8
ARGS="-V"
deps = git+https://github.com/Qiskit/qiskit.git
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands =
stestr run {posargs}
[testenv:lint]
envdir = .tox/lint
basepython = python3
commands =
black --check {posargs} qopt_best_practices test
pylint -rn qopt_best_practices test
[testenv:black]
envdir = .tox/lint
commands = black {posargs} qopt_best_practices test
[testenv:coverage]
basepython = python3
setenv =
{[testenv]setenv}
PYTHON=coverage3 run --source qopt_best_practices --parallel-mode
commands =
stestr run {posargs}
coverage3 combine
coverage3 report