forked from rsinger86/django-lifecycle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
35 lines (32 loc) · 828 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
[tox]
toxworkdir={env:TOXWORKDIR:{toxinidir}/.tox}
envlist =
{py35,py36,py37}-django20
{py35,py36,py37}-django21
{py35,py36,py37,py38,py39}-django22
{py36,py37,py38,py39}-django30
{py36,py37,py38,py39}-django31
flake8
skip_missing_interpreters = True
[flake8]
max-line-length = 120
[testenv]
commands = python ./manage.py test
envdir = {toxworkdir}/venvs/{envname}
setenv =
PYTHONDONTWRITEBYTECODE=1
PYTHONWARNINGS=once
DJANGO_SETTINGS_MODULE=tests.settings
deps =
django20: django>=2.0,<2.1
django21: django>=2.1,<2.2
django22: django>=2.2,<3
django30: django>=3.0,<3.1
django31: django>=3.1,<3.2
django31: django>=3.2,<3.3
[testenv:flake8]
basepython = python3.7
deps =
flake8==3.8.4
commands =
flake8 . --exclude=venv/,.tox/,django_lifecycle/__init__.py