-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathtox.ini
39 lines (34 loc) · 944 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
38
39
[pytest]
DJANGO_SETTINGS_MODULE = tests.settings
python_files = tests.py test_*.py *_tests.py
ignore = 'node_modules'
[tox]
isolated_build = True
envlist = django{32,40,41,42,50}
[tox:.package]
# note tox will use the same python version as under what tox is installed to package
# so unless this is python 3 you can require a given python version for the packaging
# environment via the basepython key
basepython = python3
[testenv]
commands = pytest {posargs}
allowlist_externals = pytest
deps =
django32: Django>=3.2.9,<3.3
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<5.0
django50: Django>=5.0,<5.1
setenv =
DJANGO_SETTINGS_MODULE = tests.settings
PYTHONPATH = {toxinidir}
[flake8]
max-line-length = 119
select = C,E,F,W,B,B950,T
ignore = E231,E501,W503
[isort]
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
line_length = 119