mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-17 04:10:24 +00:00
* Modernize Python syntax, add Python 3.8 * Update Python version & dist in TravisCI * Add postgresql as addon * Switch to psycopg2-binary * Drop django.utils.six
40 lines
784 B
INI
40 lines
784 B
INI
[tox]
|
|
envlist =
|
|
py37-django{202,201}
|
|
py36-django{111,202,201,trunk}
|
|
py38-django{202,201,trunk}
|
|
flake8
|
|
|
|
[testenv]
|
|
deps =
|
|
django111: Django==1.11.*
|
|
django202: Django==2.2.*
|
|
django201: Django==2.1.*
|
|
djangotrunk: https://github.com/django/django/archive/master.tar.gz
|
|
freezegun == 0.3.8
|
|
-rrequirements-test.txt
|
|
ignore_outcome =
|
|
djangotrunk: True
|
|
passenv =
|
|
CI
|
|
TRAVIS
|
|
TRAVIS_*
|
|
|
|
commands =
|
|
pip install -e .
|
|
py.test {posargs}
|
|
|
|
[testenv:flake8]
|
|
basepython =
|
|
python3.6
|
|
deps =
|
|
flake8
|
|
commands =
|
|
flake8 model_utils tests
|
|
|
|
[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
|