-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathtox.ini
74 lines (65 loc) · 1.46 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
[tox]
skipsdist = True
envlist = py37,py311,lint,coverage-report
[tox:jenkins]
toxworkdir = /tmp/{env:BUILD_TAG}/.tox
[testenv]
setenv =
PYTHONWARNINGS=ignore
deps =
-r{toxinidir}/requirements.txt
coverage
mock
pytest
pytest-flask
pytest-factoryboy
httpretty<0.6.5
commands =
{envbindir}/coverage run \
--parallel \
-m pytest \
--junitxml={toxinidir}/pytest.xml \
{posargs:-vv}
[testenv:coverage-report]
deps = coverage
skip_install = True
commands =
{envbindir}/coverage combine
- {envbindir}/coverage xml -i
{envbindir}/coverage report
[testenv:lint]
basepython=python3.11
deps =
flake8
flake8-builtins
flake8-docstrings
flake8-import-order
flake8-mutable
flake8-pep3101
flake8-string-format
skip_install = True
commands =
{envbindir}/flake8 \
--tee \
--output={toxinidir}/flake8.txt \
--exclude=gglsbl/_version.py,gglsbl/tests.py \
--ignore=D102,D103,D400,D401,D413,P101,D100,D101,D104,I100,I101,I201,A003,F821,I202,E741,P103,W503 \
{posargs} \
gglsbl bin
[flake8]
max-line-length = 120
import-order-style = google
[pytest]
testpaths = gglsbl/tests.py
addopts = --doctest-modules
[coverage:run]
branch = True
omit = *lib/python3.7/*,*lib/python2.7/*,*lib/python3.11/*
[coverage:report]
show_missing = True
exclude_lines =
noqa: nocover
if __name__ == '__main__':
; fail_under = 100
[coverage:xml]
output = coverage.xml