-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
76 lines (65 loc) · 1.3 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
[tox]
envlist =
clean
mypy
py{37,38,39,310,311,312}
coverage-html
skipsdist = True
skip_missing_interpreters = True
basepython = python3.10
[testenv:clean]
deps =
coverage
setenv =
commands =
-coverage erase
[testenv:mypy]
setenv =
deps = mypy
commands =
mypy --ignore-missing-imports --follow-imports=skip src
[testenv:flake8-critical]
setenv =
basepython = python3.10
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-html]
basepython = python3.10
deps =
coverage
setenv =
commands =
-coverage combine --append
coverage html --omit="*/test*"
coverage html --include="./src/*" --omit="*/test*"
[testenv]
passenv = DATABASE_URL
deps =
coverage
zinolib
setenv =
LC_ALL=C.UTF-8
LANG=C.UTF-8
PYTHONPATH = {toxinidir}/src
PYTHONWARNINGS=once::DeprecationWarning
commands =
coverage run -m unittest discover -s tests/ {posargs}
[coverage:run]
source = ./src/.
omit =
test*
[coverage:report]
exclude_lines =
# Ignore not abstract methods, as these cannot be tested
raise NotImplementedError
[flake8]
max-line-length = 88
filename =
src/*
extend_exclude =
*.egg-info,
*.html,
*.txt,