2011-03-29 16:41:22 +00:00
|
|
|
[tox]
|
2013-05-21 05:23:08 +00:00
|
|
|
envlist =
|
2020-11-28 21:51:55 +00:00
|
|
|
py{36,37,38,39}-django{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-04-28 14:49:53 +00:00
|
|
|
django22: Django==2.2.*
|
2019-12-09 13:37:16 +00:00
|
|
|
django30: Django==3.0.*
|
2020-09-17 10:38:23 +00:00
|
|
|
django31: Django==3.1.*
|
2020-11-28 21:51:55 +00:00
|
|
|
djangomaster: https://github.com/django/django/archive/master.tar.gz
|
2018-01-10 09:44:25 +00:00
|
|
|
ignore_outcome =
|
|
|
|
|
djangotrunk: True
|
2018-06-28 20:41:09 +00:00
|
|
|
passenv =
|
2018-07-02 18:43:38 +00:00
|
|
|
CI
|
|
|
|
|
TRAVIS
|
|
|
|
|
TRAVIS_*
|
2013-07-25 16:58:46 +00:00
|
|
|
|
2017-12-11 14:08:47 +00:00
|
|
|
commands =
|
|
|
|
|
pip install -e .
|
2020-11-28 21:51:55 +00:00
|
|
|
pytest {posargs}
|
|
|
|
|
|
|
|
|
|
[testenv:py{36,37,38,39}-djangomaster]
|
|
|
|
|
ignore_errors = True
|
2018-07-02 18:43:38 +00:00
|
|
|
|
|
|
|
|
[testenv:flake8]
|
|
|
|
|
basepython =
|
2019-12-09 13:37:16 +00:00
|
|
|
python3.7
|
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
|