-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
41 lines (38 loc) · 1.02 KB
/
tox.ini
File metadata and controls
41 lines (38 loc) · 1.02 KB
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
36
37
38
39
40
41
[tox]
# currently we only test Python3 as with Python2 pytest has problems finding
# proper paths and fails to run
envlist =
py{35,36}-{plain,sqla,d109,d110,d111}
[testenv]
commands = pytest {posargs}
setenv =
PYTHONDONTWRITEBYTECODE=1
PYTHONWARNINGS=once
usedevelop = True
deps =
-rrequirements/devel.txt
{d109,d110,d111}: -rrequirements/devel-django.txt
{sqla}: -rrequirements/devel-sqlalchemy.txt
d109: Django>=1.9,<1.10
d110: Django>=1.10,<1.11
d111: Django>=1.11,<1.12
changedir =
d109: {toxinidir}/examples/djangoapp
d110: {toxinidir}/examples/djangoapp
d111: {toxinidir}/examples/djangoapp
sqla: {toxinidir}/examples/sqlalchemyapp
plain: {toxinidir}/cq
passenv =
DJANGO_SETTINGS_MODULE
basepython =
py27: python2.7
py35: python3.5
py36: python3.6
[pytest]
DJANGO_SETTINGS_MODULE = examples.djangoapp.settings_test
addopts = --tb short
python_files = test*.py
[flake8]
exclude = .git,.tox,venv,migrations*
max-line-length = 119
accept-encodings = utf-8