forked from jieter/django-tables2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
56 lines (49 loc) · 1.08 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[tox]
args_are_paths = false
envlist =
py27-{1.11},
py34-{1.11,2.0},
py35-{1.11,2.0,master},
py36-{2.0,master},
docs,
flake8,
isort
[travis]
python:
2.7: py27
3.6: py36, docs, flake8, isort
[testenv]
basepython =
py27: python2.7
py34: python3.4
py35: python3.5
py36: python3.6
usedevelop = true
pip_pre = true
setenv = PYTHONPATH={toxinidir}
commands =
python -Wd manage.py test
deps =
1.11: Django>=1.11,<2.0
2.0: Django>=2.0,<2.1
master: https://github.com/django/django/archive/master.tar.gz
-r{toxinidir}/requirements/common.pip
[testenv:docs]
basepython = python3.6
whitelist_externals = make
changedir = docs
commands = make html
deps =
-r{toxinidir}/docs/requirements.txt
[testenv:flake8]
basepython = python3.6
deps = flake8
commands = flake8
[flake8]
ignore = E731
exclude = .git,__pycache__,.tox,example/app/migrations
max-line-length = 120
[testenv:isort]
basepython = python3.6
deps = isort==4.2.15
commands = isort --diff --check --recursive {toxinidir}/django_tables2 {toxinidir}/tests {toxinidir}/example