-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
46 lines (42 loc) · 927 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
42
43
44
45
46
[tox]
envlist =
check,
py37,
py38,
py39,
coverage,
docs
basepython = python3.9
[testenv]
usedevelop = True
extras = test
setenv =
NODOCKER = 0
PYTHONPATH = {toxinidir}
py{37,38,39}: COVERAGE_FILE=.coverage.{envname}
USER = root
passenv =
CI_BUILD_TOKEN
SKIP_MTIME_CHECKS
commands =
py{37,38,39}: py.test --cov=plz --verbose --tb=long
[testenv:coverage]
deps = coverage
skip_install = True
skipsdist = True
allowlist_externals =
/usr/bin/env
commands =
/usr/bin/env bash -c "{envpython} -m coverage combine .coverage.*"
coverage report
coverage html
[testenv:check]
extras = check
commands =
isort plz tests setup.py docs/conf.py --check-only --diff
black plz tests setup.py docs/conf.py --check --diff
flake8 plz tests setup.py docs/conf.py
mypy plz
[testenv:docs]
extras = docs
commands = sphinx-build {posargs:-E} -b html docs dist/docs