django-model-utils/tox.ini

57 lines
872 B
INI
Raw Normal View History

2011-03-29 16:41:22 +00:00
[tox]
envlist =
2022-08-17 20:54:39 +00:00
py{37,38,39,310}-dj32
2022-08-17 21:01:45 +00:00
py{38,39,310}-dj{40,41,main}
flake8
isort
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
2020-11-29 20:58:00 +00:00
3.8: py38, flake8, isort
2020-11-28 21:51:55 +00:00
3.9: py39
3.10: py310
2020-11-28 21:51:55 +00:00
2011-03-29 16:41:22 +00:00
[testenv]
deps =
freezegun==0.3.12
-rrequirements-test.txt
2021-04-07 07:14:55 +00:00
dj32: Django==3.2.*
2021-12-07 15:44:32 +00:00
dj40: Django==4.0.*
2022-08-17 21:01:45 +00:00
dj41: Django==4.1.*
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
2020-11-29 13:36:06 +00:00
GITHUB_*
2020-11-29 13:51:26 +00:00
DB_*
2020-11-29 13:36:06 +00:00
usedevelop = True
2017-12-11 14:08:47 +00:00
commands =
2020-11-29 13:36:06 +00:00
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