-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
34 lines (29 loc) · 641 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
[tox]
minversion = 3.6
envlist = py36, py37, py38, py39, lint, coverage, black
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 = -r requirements.txt
-r requirements-dev.txt
commands =
pip check
python -m unittest -v
[testenv:lint]
envdir = .tox/lint
sitepackages = False
commands =
pylint -rn src tests
[testenv:coverage]
basepython = python3
commands =
coverage3 run -m unittest -v
coverage3 report --fail-under=80
[testenv:black]
envdir = .tox/lint
commands = black {posargs} src tests --check