-
Notifications
You must be signed in to change notification settings - Fork 151
/
tox.ini
37 lines (34 loc) · 810 Bytes
/
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
[tox]
requires =
tox>=4.2
env_list =
py313-django{51}
py312-django{51, 50, 42}
py311-django{51, 50, 42}
py311-codegen
py310-django{51, 50, 42}
py39-django{42}
[testenv]
package = wheel
wheel_build_env = .pkg
deps =
-r tests/requirements/{envname}.txt
set_env =
PYTHONDEVMODE = 1
commands =
python \
-W error::ResourceWarning \
-W error::DeprecationWarning \
-W error::PendingDeprecationWarning \
-W 'ignore:path is deprecated. Use files() instead.:DeprecationWarning' \
-m coverage run \
-m pytest {posargs:tests}
[testenv:py311-codegen]
deps =
commands =
python ./scripts/generate_default_media_types.py --check
[flake8]
max-line-length = 88
extend-ignore = E203,E501
per-file-ignores =
src/whitenoise/media_types.py:E501