-
Notifications
You must be signed in to change notification settings - Fork 583
/
Copy pathtox.ini
81 lines (73 loc) · 1.56 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
[tox]
envlist =
flake8
isort
docs
frontend
py{27,34,35,36}-dj111-noswap
py{27,34,35,36}-dj111-swap
py{35,36,37}-dj{21,22,master}-noswap
py{35,36,37}-dj{21,22,master}-swap
skip_missing_interpreters=True
[flake8]
max-line-length = 119
exclude =
*.egg-info,
.eggs,
.git,
.settings,
.tox,
build,
data,
dist,
docs,
*migrations*,
tmp,
node_modules
ignore = E251,E128,E501,W503
[isort]
line_length = 79
skip = manage.py, *migrations*, .tox, .eggs, data
include_trailing_comma = true
multi_line_output = 5
not_skip = __init__.py
lines_after_imports = 2
default_section = THIRDPARTY
sections = FUTURE, STDLIB, DJANGO, CMS, THIRDPARTY, FIRSTPARTY, LIB, LOCALFOLDER
known_first_party = filer
known_cms = cms, menus
known_django = django
[testenv]
deps =
dj111: -r tests/requirements/django-1.11.txt
dj21: -r tests/requirements/django-2.1.txt
dj22: -r tests/requirements/django-2.2.txt
djmaster: -r tests/requirements/django-master.txt
commands =
{envpython} --version
{env:COMMAND:coverage} erase
{env:COMMAND:coverage} run setup.py test
{env:COMMAND:coverage} report
setenv =
swap: CUSTOM_IMAGE=custom_image.Image
[testenv:flake8]
deps = flake8
commands = flake8
[testenv:isort]
deps = isort
commands = isort -c -rc -df filer
skip_install = true
[testenv:docs]
changedir = docs
deps =
sphinx
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
skip_install = true
[testenv:frontend]
whitelist_externals =
nvm
npm
gulp
commands =
gulp ci