-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
80 lines (69 loc) · 1.31 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
71
72
73
74
75
76
77
78
79
80
[tox]
envlist =
flake8-critical
coverage-clean
py{37,38,39,310,311}
coverage-html
skip_missing_interpreters = True
basepython = python3.8
isolated_build = True
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
[testenv:flake8-critical]
setenv =
deps =
flake8
commands =
# stop the build if there are Python syntax errors or undefined names
flake8 --count --select=E9,F63,F7,F82 --show-source --statistics src/
[testenv:coverage-clean]
deps =
coverage
setenv =
commands =
-coverage erase
[testenv:coverage-html]
basepython = python3.9
deps =
coverage
setenv =
commands =
-coverage combine --append
coverage html --include="./src/*" --omit="*/test*"
[testenv:coverage-xml]
basepython = python3.9
deps =
coverage
setenv =
commands_pre =
commands =
coverage xml --include="./src/*" --omit="*/test*"
[testenv]
deps =
humiolib
coverage
setenv =
LC_ALL=C.UTF-8
LANG=C.UTF-8
PYTHONPATH = {toxinidir}/src
commands =
coverage run -m unittest discover {posargs}
[coverage:run]
source = ./src/.
[coverage:report]
exclude_lines =
# Ignore not abstract methods, as these cannot be tested
raise NotImplementedError
[flake8]
max-line-length = 88
filename =
src/*
exclude =
.*
__pycache__
*.egg-info/