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
|
[tox]
envlist =
{py38,py39,py310,py311}-django{42},
{py310,py311,py312}-django{50,51,52,-latest},
{py313}-django{51,52,-latest},
lint
[testenv]
deps =
django42: django>=4.2a,<5.0
django50: django>=5.0a,<5.1
django51: django>=5.1a,<5.2
django52: django>=5.2a,<6.0
django-latest: https://github.com/django/django/archive/main.tar.gz
-rrequirements/testing.txt
allowlist_externals = make
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning -m pytest {posargs} --cov=crispy_forms
ignore_outcome =
django-latest: True
setenv =
PYTHONDONTWRITEBYTECODE=1
[testenv:lint]
skip_install = true
commands =
black . --check
isort . --check --dif
flake8 crispy_forms tests
deps =
-rrequirements/lint.txt
[flake8]
exclude =
# The conf file is auto generated, ignore it
docs/conf.py
max-line-length = 119
|