2011-03-29 16:41:22 +00:00
|
|
|
[tox]
|
2013-05-21 05:23:08 +00:00
|
|
|
envlist =
|
2020-11-29 13:42:23 +00:00
|
|
|
py{36,37,38,39}-dj{21,22,30,31,master}
|
2018-07-02 18:43:38 +00:00
|
|
|
flake8
|
2011-03-29 16:41:22 +00:00
|
|
|
|
2020-11-28 21:51:55 +00:00
|
|
|
[travis]
|
|
|
|
|
python =
|
|
|
|
|
3.6: py36
|
|
|
|
|
3.7: py37
|
|
|
|
|
3.8: py38
|
|
|
|
|
3.9: py39
|
|
|
|
|
|
2011-03-29 16:41:22 +00:00
|
|
|
[testenv]
|
2013-05-21 05:25:25 +00:00
|
|
|
deps =
|
2020-10-01 00:09:02 +00:00
|
|
|
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
|
2018-06-28 20:41:09 +00:00
|
|
|
passenv =
|
2018-07-02 18:43:38 +00:00
|
|
|
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}
|
2018-07-02 18:43:38 +00:00
|
|
|
|
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
|
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 =
|
2018-07-02 21:33:47 +00:00
|
|
|
E731 ; do not assign a lambda expression, use a def
|
2018-07-02 19:52:47 +00:00
|
|
|
W503 ; line break before binary operator
|
2018-07-02 20:01:49 +00:00
|
|
|
E402 ; module level import not at top of file
|
2018-07-02 21:33:47 +00:00
|
|
|
E501 ; line too long
|
2020-11-29 13:36:06 +00:00
|
|
|
|
|
|
|
|
[gh-actions]
|
|
|
|
|
python =
|
|
|
|
|
3.6: py36
|
2020-11-29 13:42:23 +00:00
|
|
|
3.7: py37
|
|
|
|
|
3.8: py38, flake8
|