forked from jieter/django-tables2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
87 lines (77 loc) · 1.68 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[tox]
args_are_paths = false
envlist =
py27-{1.11},
py34-{1.11,2.0},
py35-{1.11,2.0,2.1,master},
py36-{2.0,2.1,master},
py37-{2.1,master},
docs,
flake8,
isort,
black
[travis]
python:
2.7: py27
3.6: py36, docs, flake8, isort
3.7-dev: py37
[testenv]
basepython =
py27: python2.7
py34: python3.4
py35: python3.5
py36: python3.6
py37: python3.7
ignore_outcome =
py37: True
usedevelop = true
pip_pre = true
setenv =
PYTHONPATH={toxinidir}
PYTHONWARNINGS=all
commands =
coverage run --source=django_tables2 manage.py test
deps =
1.11: Django>=1.11,<2.0
2.0: Django>=2.0,<2.1
2.1: Django==2.1
master: https://github.com/django/django/archive/master.tar.gz
coverage
-r{toxinidir}/requirements/common.pip
[testenv:docs]
basepython = python3.6
whitelist_externals = make
changedir = docs
setenv =
PYTHONWARNINGS=default
commands =
make html
make spelling
deps =
-r{toxinidir}/docs/requirements.txt
[testenv:flake8]
basepython = python3.6
deps = flake8
commands = flake8
[flake8]
ignore = E731,W503,E203
exclude = .git,__pycache__,.tox,example/app/migrations
max-line-length = 120
[testenv:black]
basepython = python3.6
passenv = LC_CTYPE
deps = black==18.6b4
commands = black --check .
[testenv:isort]
basepython = python3.6
deps = isort==4.2.15
commands = isort --diff --check --recursive {toxinidir}/django_tables2 {toxinidir}/tests {toxinidir}/example
[isort]
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
combine_as_imports = True
line_length = 100
skip = migrations
known_third_party=django,django_filter,pytest,fudge,lxml,pytz
known_first_party=django_tables2