django-model-utils/tox.ini

56 lines
1,022 B
INI
Raw Normal View History

2011-03-29 16:41:22 +00:00
[tox]
envlist =
py{36,37,38,39}-dj{22,30,31,master}
2020-11-29 20:58:00 +00:00
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.6: py36
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
2011-03-29 16:41:22 +00:00
[testenv]
deps =
freezegun==0.3.12
-rrequirements-test.txt
2020-11-29 13:36:06 +00:00
dj22: Django==2.2.*
dj30: Django==3.0.*
dj31: Django==3.1.*
2020-11-29 13:42:23 +00:00
djmaster: https://github.com/django/django/archive/master.tar.gz
2018-01-10 09:44:25 +00:00
ignore_outcome =
2020-11-29 13:42:23 +00:00
djmaster: 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}
2020-11-29 13:42:23 +00:00
[testenv:py{36,37,38,39}-djmaster]
2020-11-28 21:51:55 +00:00
ignore_errors = True
[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 =
E731 ; do not assign a lambda expression, use a def
W503 ; line break before binary operator
E402 ; module level import not at top of file
E501 ; line too long
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