-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtox.ini
32 lines (29 loc) · 828 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
[flake8]
max_line_length=118
[tox]
envlist =
{py38,py39,py310,py311}-django{42}-crispy{2,-latest},
{py310,py311,py312}-django{50,51,-latest}-crispy{2,-latest},
{py313}-django{51,-latest}-crispy{2,-latest},
lint
[testenv]
package = wheel
wheel_build_env = .pkg
deps =
django42: django>=4.2,<5.0
django50: django>=5.0,<5.1
django51: django>=5.1,<5.2
crispy2: django-crispy-forms>=2.3
crispy-latest: https://github.com/django-crispy-forms/django-crispy-forms/archive/main.tar.gz
-rrequirements/testing.txt
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning -m pytest {posargs}
setenv =
PYTHONDONTWRITEBYTECODE=1
[testenv:lint]
skip_install = true
commands =
black . --check
isort . --check --dif
flake8 .
deps =
-rrequirements/lint.txt