mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-16 20:00:23 +00:00
57 lines
896 B
INI
57 lines
896 B
INI
[tox]
|
|
envlist =
|
|
py{37,38,39,310,311}-dj32
|
|
py{38,39,310,311}-dj{40,41,main}
|
|
flake8
|
|
isort
|
|
|
|
[gh-actions]
|
|
python =
|
|
3.7: py37
|
|
3.8: py38, flake8, isort
|
|
3.9: py39
|
|
3.10: py310
|
|
3.11: py311
|
|
|
|
[testenv]
|
|
deps =
|
|
freezegun==0.3.12
|
|
-rrequirements-test.txt
|
|
dj32: Django==3.2.*
|
|
dj40: Django==4.0.*
|
|
dj41: Django==4.1.*
|
|
djmain: https://github.com/django/django/archive/main.tar.gz
|
|
ignore_outcome =
|
|
djmain: True
|
|
ignore_errors =
|
|
djmain: True
|
|
passenv =
|
|
CI
|
|
GITHUB_*
|
|
DB_*
|
|
usedevelop = True
|
|
commands =
|
|
pytest {posargs}
|
|
|
|
[testenv:flake8]
|
|
basepython =
|
|
python3.8
|
|
deps =
|
|
flake8
|
|
skip_install = True
|
|
commands =
|
|
flake8 model_utils tests
|
|
|
|
[flake8]
|
|
ignore =
|
|
E731
|
|
W503
|
|
E402
|
|
E501
|
|
|
|
[testenv:isort]
|
|
basepython = python3.8
|
|
deps = isort
|
|
commands =
|
|
isort model_utils tests setup.py --check-only --diff
|
|
skip_install = True
|