django-model-utils/tox.ini

76 lines
1.2 KiB
INI
Raw Permalink Normal View History

2011-03-29 16:41:22 +00:00
[tox]
envlist =
2023-10-26 16:00:43 +00:00
py{38,39,310,311}-dj{42}
py{310,311,312}-dj{50}
2024-08-28 07:48:40 +00:00
py{310,311,312}-dj{51}
2025-04-08 07:39:27 +00:00
py{310,311,312,313}-dj{51,52}
py{310,311,312,313}-dj{main}
flake8
isort
mypy
2011-03-29 16:41:22 +00:00
2020-11-29 13:54:15 +00:00
[gh-actions]
2020-11-28 21:51:55 +00:00
python =
3.7: py37
3.8: py38, flake8, isort, mypy
2020-11-28 21:51:55 +00:00
3.9: py39
3.10: py310
2022-11-15 10:06:42 +00:00
3.11: py311
2022-12-12 19:21:30 +00:00
3.12: py312
3.13: py313
2020-11-28 21:51:55 +00:00
2011-03-29 16:41:22 +00:00
[testenv]
deps =
2025-04-08 07:43:46 +00:00
time-machine
-rrequirements-test.txt
dj42: Django==4.2.*
2023-10-26 16:00:43 +00:00
dj50: Django==5.0.*
2024-08-28 07:48:40 +00:00
dj51: Django==5.1.*
2025-04-08 07:39:27 +00:00
dj52: Django==5.2.*
djmain: https://github.com/django/django/archive/main.tar.gz
2018-01-10 09:44:25 +00:00
ignore_outcome =
djmain: True
ignore_errors =
djmain: True
passenv =
CI
2022-11-15 10:12:36 +00:00
FORCE_COLOR
2020-11-29 13:36:06 +00:00
GITHUB_*
POSTGRES_*
2020-11-29 13:36:06 +00:00
usedevelop = True
2017-12-11 14:08:47 +00:00
commands =
python -m pytest {posargs}
[testenv:flake8]
basepython =
2020-11-28 21:57:57 +00:00
python3.8
deps =
flake8
2020-11-28 21:51:55 +00:00
skip_install = True
commands =
flake8 model_utils tests
2018-07-02 18:45:51 +00:00
[flake8]
ignore =
2022-12-12 19:17:00 +00:00
E731
W503
E402
E501
2020-11-29 20:58:00 +00:00
[testenv:isort]
basepython = python3.8
deps = isort
commands =
isort model_utils tests setup.py --check-only --diff
skip_install = True
[testenv:mypy]
basepython = python3.8
deps =
time-machine==2.8.2
-r requirements-mypy.txt
set_env =
SQLITE=1
commands =
mypy model_utils tests