-
Notifications
You must be signed in to change notification settings - Fork 280
/
tox.ini
56 lines (49 loc) · 1.27 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
45
46
47
48
49
50
51
52
53
54
55
56
[tox]
envlist = test-py{37,38,39}
[testenv]
changedir = {envtmpdir}
setenv =
COVERAGE_FILE={toxinidir}/.coverage
[testenv:test-py{37,38,39}]
extras =
test
commands =
pytest --capture=no --verbose --cov=plotman --cov-report=term-missing --cov-report=xml:{toxinidir}/coverage.xml --pyargs plotman
[testenv:check-manifest]
extras =
checks
commands =
check-manifest --verbose {toxinidir}
[testenv:check-coverage]
changedir = {toxinidir}
extras =
coverage
commands =
coverage combine coverage_reports/
coverage xml -o coverage.xml
coverage report --fail-under=35 --ignore-errors --show-missing
diff-cover {posargs:--compare-branch=development} coverage.xml
[testenv:check-hints-py{37,38,39}]
changedir = {toxinidir}
extras =
checks
commands =
mypy --package plotman
[testenv:check-format]
basepython = python3.8
changedir = {toxinidir}
extras =
checks
# TODO: would be nice to install extras but not package...
#skip_install = true
commands =
black --config {toxinidir}/pyproject.toml --check --diff {toxinidir}
[testenv:format]
basepython = python3.8
changedir = {toxinidir}
extras =
checks
# TODO: would be nice to install extras but not package...
#skip_install = true
commands =
black --config {toxinidir}/pyproject.toml {toxinidir}