This repository has been archived by the owner on Oct 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 118
/
tox.ini
80 lines (73 loc) · 1.58 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
[tox]
envlist =
flake8
isort
py{27,34,35,36}-dj111-{sqlite,mysql,postgres}-cms{34,35,36}
py{34,35,36}-dj20-{sqlite,mysql,postgres}-cms36
py{35,36}-dj21-{sqlite,mysql,postgres}-cms36
[flake8]
ignore = E251,E128
max-line-length = 119
exclude =
*.egg-info,
.eggs,
.git,
.settings,
.tox,
build,
data,
dist,
docs,
*migrations*,
node_modules*,
requirements,
tmp
[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 = aldryn_newsblog
known_cms = cms, menus
known_django = django
[testenv]
passenv =
CI
HOME
COVERALLS_REPO_TOKEN
whitelist_externals =
gulp
sh
sleep
deps =
-r{toxinidir}/test_requirements.txt
dj111: Django>=1.11,<2.0
dj20: Django>=2.0,<2.1
dj21: Django>=2.1.4,<2.2
cms34: django-cms>=3.4,<3.5
cms35: django-cms>=3.5,<3.6
cms36: https://github.com/divio/django-cms/archive/release/3.6.x.zip
mysql: mysqlclient
postgres: psycopg2
commands =
{env:COMMAND:python} setup.py test
fe: gulp tests:unit
fe: gulp tests:lint
fe: gulp tests:integration --clean
basepython =
py27: python2.7
py34: python3.4
py35: python3.5
py36: python3.6
[testenv:flake8]
deps = flake8
commands = flake8
basepython = python3.5
[testenv:isort]
deps = isort
commands = isort -c -rc -df aldryn_newsblog
skip_install = true