2011-03-29 16:41:22 +00:00
|
|
|
[tox]
|
2013-05-21 05:23:08 +00:00
|
|
|
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}
|
2024-09-05 14:58:24 +00:00
|
|
|
py{310,311,312,313}-dj{main}
|
2021-03-09 12:41:20 +00:00
|
|
|
flake8
|
|
|
|
|
isort
|
2024-03-25 15:30:13 +00:00
|
|
|
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
|
2024-03-25 15:30:13 +00:00
|
|
|
3.8: py38, flake8, isort, mypy
|
2020-11-28 21:51:55 +00:00
|
|
|
3.9: py39
|
2021-10-07 20:12:32 +00:00
|
|
|
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
|
2024-09-05 14:58:24 +00:00
|
|
|
3.13: py313
|
2020-11-28 21:51:55 +00:00
|
|
|
|
2011-03-29 16:41:22 +00:00
|
|
|
[testenv]
|
2013-05-21 05:25:25 +00:00
|
|
|
deps =
|
2025-04-08 07:43:46 +00:00
|
|
|
time-machine
|
2020-10-01 00:09:02 +00:00
|
|
|
-rrequirements-test.txt
|
2023-04-06 11:38:02 +00:00
|
|
|
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.*
|
2021-03-09 12:37:02 +00:00
|
|
|
djmain: https://github.com/django/django/archive/main.tar.gz
|
2018-01-10 09:44:25 +00:00
|
|
|
ignore_outcome =
|
2021-03-09 12:37:02 +00:00
|
|
|
djmain: True
|
|
|
|
|
ignore_errors =
|
|
|
|
|
djmain: True
|
2018-06-28 20:41:09 +00:00
|
|
|
passenv =
|
2018-07-02 18:43:38 +00:00
|
|
|
CI
|
2022-11-15 10:12:36 +00:00
|
|
|
FORCE_COLOR
|
2020-11-29 13:36:06 +00:00
|
|
|
GITHUB_*
|
2023-04-06 11:02:54 +00:00
|
|
|
POSTGRES_*
|
2020-11-29 13:36:06 +00:00
|
|
|
usedevelop = True
|
2017-12-11 14:08:47 +00:00
|
|
|
commands =
|
2023-03-16 21:45:14 +00:00
|
|
|
python -m pytest {posargs}
|
2018-07-02 18:43:38 +00:00
|
|
|
|
|
|
|
|
[testenv:flake8]
|
|
|
|
|
basepython =
|
2020-11-28 21:57:57 +00:00
|
|
|
python3.8
|
2018-07-02 18:43:38 +00:00
|
|
|
deps =
|
|
|
|
|
flake8
|
2020-11-28 21:51:55 +00:00
|
|
|
skip_install = True
|
2018-07-02 18:43:38 +00:00
|
|
|
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
|
2024-03-25 15:30:13 +00:00
|
|
|
|
|
|
|
|
[testenv:mypy]
|
|
|
|
|
basepython = python3.8
|
|
|
|
|
deps =
|
|
|
|
|
time-machine==2.8.2
|
|
|
|
|
-r requirements-mypy.txt
|
|
|
|
|
set_env =
|
|
|
|
|
SQLITE=1
|
|
|
|
|
commands =
|
|
|
|
|
mypy model_utils tests
|