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
|
[tox]
args_are_paths = false
envlist =
py35-{2.1,2.2},
py36-{2.1,2.2,3.0,master},
py37-{2.1,2.2,3.0,master},
py38-{3.0,master},
docs,
flake8,
isort,
black
[travis]
python:
3.5: py35
3.6: py36, docs, flake8, isort
3.7-dev: py37
[testenv]
basepython =
py35: python3.5
py36: python3.6
py37: python3.7
py38: python3.8
usedevelop = true
pip_pre = true
setenv =
PYTHONPATH={toxinidir}
PYTHONWARNINGS=all
commands =
coverage run --source=django_tables2 manage.py test {posargs}
deps =
2.1: Django==2.1.*
2.2: Django==2.2.*
3.0: Django==3.0a1
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==3.7.8
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==19.3b0
commands = black --check .
[testenv:isort]
basepython = python3.6
deps = isort==4.3.21
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_filters,pytest,fudge,lxml,pytz
known_first_party=django_tables2
|