-
-
Notifications
You must be signed in to change notification settings - Fork 618
/
tox.ini
71 lines (65 loc) · 1.24 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
[tox]
skipsdist = False
usedevelop = true
envlist =
py{37,38,39}-dj{22,32}
py{38,39}-dj{40,405}
py{310,311}-dj{40,405}
flake8
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39, flake8
3.10: py310
3.11: py311
[gh-actions:env]
DJANGO =
2.2: dj22
3.2: dj32
4.0: dj40
4.0.5: dj405
4.2: dj42
[testenv]
usedevelop = true
setenv =
PYTHONWARNINGS = all
DJANGO_SETTINGS_MODULE = tests.settings
PYTHONPATH = {toxinidir}
commands =
pytest
pytest --ds=tests.settings_unique tests/tst_unique.py
deps =
pytest
pytest-cov
pytest-django
pywebpush
djangorestframework
firebase-admin>=6.2
dj22: Django>=2.2,<3.0
dj32: Django>=3.2,<3.3
dj40: Django>=4.0,<4.0.5
dj405: Django>=4.0.5,<4.1
dj42: Django>=4.2,<4.3
py{36,37,38,39}: apns2
py{310,311}: aioapns>=3.1,<3.2
[testenv:flake8]
commands = flake8 --exit-zero
deps =
flake8
flake8-isort
flake8-quotes
[flake8]
ignore = W191,E503
max-line-length = 92
exclude = .tox, push_notifications/migrations
inline-quotes = double
[isort]
indent = tab
line_length = 92
lines_after_imports = 2
balanced_wrapping = True
default_section = THIRDPARTY
known_first_party = push_notifications
multi_line_output = 5
skip = .tox/