-
Notifications
You must be signed in to change notification settings - Fork 14
/
tox.ini
74 lines (67 loc) · 1.52 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]
isolated_build = True
envlist =
; lint,
py3{7,8,9,10}-django{31,32}-channels{2,3}-drf3{11,12,13}
py3{8,9,10}-django40-channels3-drf3{13}
[testenv]
commands =
pytest --cov=rest_live --cov-append {posargs}
setenv =
DJANGO_SETTINGS_MODULE = tests.settings
PYTHONPATH = {toxinidir}
; PYTHONWARNINGS = all
deps =
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
django40: Django>=4.0,<5.0
; djangomain: https://github.com/django/django/archive/main.tar.gz
channels2: channels>=2.0,<3.0
channels3: channels>=3.0,<4.0
drf39: djangorestframework>=3.9,<3.10
drf310: djangorestframework>=3.10,<3.11
drf311: djangorestframework>=3.11,<3.12
drf312: djangorestframework>=3.12,<3.13
drf313: djangorestframework>=3.13,<3.14
coverage
pytest
pytest-cov
pytest-django
pytest-asyncio
pytest-mock
djangorestframework
djangorestframework-camel-case
[testenv:lint]
skip_install = True
commands =
flake8
isort . --check
black --check .
deps =
black
flake8
flake8-absolute-import
flake8-isort
flake8-quotes
[flake8]
max-line-length = 88
exclude = docs/, .tox/, build/
inline-quotes = double
[isort]
default_section = THIRDPARTY
known_first_party = rest_live
line_length = 88
lines_after_imports = 2
multi_line_output = 3
include_trailing_comma = True
use_parentheses = True
[coverage:run]
source = rest_live
[pytest]
django_find_project = false
[gh-actions]
python =
3.7: py37
3.8: py38, lint
3.9: py39
3.10: py310