-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathtox.ini
85 lines (75 loc) · 1.53 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
77
78
79
80
81
82
83
84
85
[tox]
envlist =
clean
py{py3,38,39,310,311,312}-django{32,42}
py{310,311,312}-django50
docs
lint
isort
coverage
[testenv]
deps =
django32: Django>=3.2,<3.3
django42: Django>=4.2,<4.3
django50: Django>=5.0,<5.1
coverage
changedir = examples/protected_downloads
commands =
python --version
coverage run --rcfile=../../.coveragerc -a manage.py test django_sendfile {posargs}
setenv = PYTHONWARNINGS = default
# issue with pypy + coverage, see https://github.com/nedbat/coveragepy/issues/1382
[testenv:pypy3-django{32,42,50}]
commands =
python --version
python manage.py test django_sendfile {posargs}
[gh-actions]
python =
pypy-3: pypy3
3.8: clean,py38,coverage
3.9: clean,py39,coverage
3.10: clean,py310,coverage
3.11: clean,py311,coverage
3.12: clean,py312,coverage
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:coverage]
deps = coverage
skip_install = true
commands =
coverage report
coverage html
coverage xml
[testenv:lint]
changedir =
commands=flake8 . {posargs}
deps=flake8
skip_install = true
[testenv:isort]
commands = isort --check-only .
changedir =
deps = isort
skip_install = true
[testenv:docs]
allowlist_externals = make
changedir = docs
commands = make html
extras = docs
[isort]
line_length = 100
from_first = true
use_parentheses = true
skip_glob =
django_sendfile/_version.py
versioneer.py
[flake8]
max_line_length=100
exclude =
.git
env
*/migrations/*
.tox
__pycache__
docs