-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
74 lines (66 loc) · 1.61 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]
envlist = py{36,37,38,39}-django{22,30,31,32}, flake8
skipsdist = True
[travis]
python =
3.9: py39
3.8: py38
3.7: py37
3.6: py36
[testenv:flake8]
basepython = python3
deps = flake8
commands = flake8 planb
[testenv]
deps =
-r requirements.txt
-c constraints.txt
django22: django>=2.2,<2.3
django30: django>=3.0,<3.1
django31: django>=3.1,<3.2
django32: django>=3.2,<3.3
coverage
factory-boy
pytest
pytest-cov
pytest-django
pytest-randomly
setenv =
COVERAGE_REPORT={env:COVERAGE_REPORT:term-missing:skip-covered}
PYTHONPATH = {toxinidir}
PYTHONDONTWRITEBYTECODE=1
DJANGO_SETTINGS_MODULE=test_settings
commands =
./manage check
# To show captured stdout/stderr from passed and failed tasks
# tox -- -rP
pytest --cov --cov-config tox.ini --cov-report={env:COVERAGE_REPORT} --no-cov-on-fail {posargs}
[coverage:run]
branch = True
source = planb
omit =
*/migrations/*
*/tests*
*/test_*.py
*_test.py
[coverage:report]
exclude_lines =
raise NotImplementedError
[flake8]
exclude=
*/migrations/*
max-complexity=8
ignore=E121,E123,E126,E226,E24,E704,W503
select=E,F,W,C
[pytest]
python_files =
*/tests*
test_*.py
*_test.py
filterwarnings =
# Warnings from setproctitle.
ignore:PY_SSIZE_T_CLEAN will be required for '#' formats:DeprecationWarning:setproctitle.*
# Django warning about django_q
ignore:.*'django_q' defines default_app_config.*::django.apps.registry
# Warning from multi_email_field
ignore:.*django.utils.translation.ugettext_lazy\(\) is deprecated.*::multi_email_field.forms