django-model-utils/tox.ini
Jannis Leidel 8689faf2ad
Update tox.ini
Co-authored-by: Simon Charette <charettes@users.noreply.github.com>
2020-11-29 15:12:19 +01:00

48 lines
867 B
INI

[tox]
envlist =
py{36,37,38,39}-dj{22,30,31,master}
flake8
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38, flake8
3.9: py39
[testenv]
deps =
freezegun==0.3.12
-rrequirements-test.txt
dj22: Django==2.2.*
dj30: Django==3.0.*
dj31: Django==3.1.*
djmaster: https://github.com/django/django/archive/master.tar.gz
ignore_outcome =
djmaster: True
passenv =
CI
GITHUB_*
DB_*
usedevelop = True
commands =
pytest {posargs}
[testenv:py{36,37,38,39}-djmaster]
ignore_errors = True
[testenv:flake8]
basepython =
python3.8
deps =
flake8
skip_install = True
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