-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtox.ini
72 lines (60 loc) · 1.54 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py{37, 38, 39, 310, 311}
skip_missing_interpreters = true
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv]
commands =
black typedpy
pylint --rcfile={toxinidir}/setup.cfg typedpy
pip install .
pytest
coverage run --source {toxinidir}/typedpy/ -m pytest {toxinidir}/tests/
coverage report --fail-under=70
deps =
pylint
pytest-cov
pytest
coverage
black
[testenv:coverage]
commands =
coverage erase
coverage run --source {toxinidir}/typedpy/ -m pytest {toxinidir}/tests/
coverage report -m > coverage.txt
coverage html
# coverage-badge -o coverage.svg
deps =
coverage-badge
pytest-cov
pytest
coverage
[testenv:mutations]
commands =
mut.py -t typedpy --runner pytest --unit-test tests
# anybadge -l "mutation testing score" -v 100% -o -f mutation-testing.svg
deps =
mutpy
pytest
[testenv:docs]
basepython = python
skip_install=true
changedir = docs
deps = sphinx
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:lint]
basepython=python3.9
deps=
pylint
anybadge
commands=
pylint --rcfile={toxinidir}/setup.cfg typedpy
# anybadge -l "pylint-score-$(date +%F)" -v 10.0 -o -f pylint.svg 8=red 9=orange 9.5=yellow 10=green