-
Notifications
You must be signed in to change notification settings - Fork 265
Expand file tree
/
Copy pathtox.ini
More file actions
50 lines (45 loc) · 1.04 KB
/
tox.ini
File metadata and controls
50 lines (45 loc) · 1.04 KB
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
[tox]
envlist =
py310-django{42,50,51,52},
py311-django{42,50,51,52},
py312-django{42,50,51,52},
py313-django{51,52},
dist,lint,warnings
[testenv]
commands = coverage run -p manage.py test {posargs: --no-input -v 2}
usedevelop = True
setenv =
PYTHONDONTWRITEBYTECODE = 1
deps =
coverage[toml]
django42: Django~=4.2.0
django50: Django~=5.0.0
django51: Django~=5.1.0
django52: Django~=5.2.0
[testenv:dist]
commands =
python manage.py test {posargs: --no-input -v 2}
python -m build
twine check dist/*
usedevelop = False
setenv =
PYTHONDONTWRITEBYTECODE =
deps =
build
twine
[testenv:lint]
commands =
isort src tests --check-only --diff
flake8 src tests
deps =
isort
flake8
flake8-pyproject
[testenv:warnings]
commands = python -Werror manage.py test {posargs: --no-input -v 2}
deps =
https://github.com/django/django/archive/master.tar.gz
[testenv:migration-example]
commands = python manage.py test {posargs: --no-input -v 2}
changedir = migration-example/
deps = django