forked from Travis-S-IBM/q-kernel-ops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
39 lines (34 loc) · 766 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
[tox]
minversion = 3.7
envlist = py37, py38, py39, lint, coverage, black
skipsdist = True
[testenv]
usedevelop = true
install_command = pip install -U {opts} {packages}
passenv = *
setenv =
VIRTUAL_ENV={envdir}
LANGUAGE=en_US
LC_ALL=en_US.utf-8
deps = -r requirements.txt
-r requirements-dev.txt
commands =
pip check
python -m unittest -v
[testenv:lint]
envdir = .tox/lint
sitepackages = False
commands =
pylint -rn q_kernel_ops tests
[testenv:coverage]
basepython = python3
commands =
coverage3 run -m unittest -v
coverage3 report --fail-under=80
[testenv:black]
envdir = .tox/lint
commands = black {posargs} q_kernel_ops tests --check
[testenv:json]
allowlist_externals = /bin/bash
commands =
bash -ec 'cat ecosystem.json | jq empty'