forked from cfpb/wagtail-flags
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
61 lines (54 loc) · 1.25 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
[tox]
skipsdist=True
envlist=
lint,
py{27,36}-dj{111}-wag{113},
py{36}-dj{111,20}-wag{22},
py{36,37}-dj{21}-wag{23,24}
py{36,37}-dj{22}-wag{25}
[testenv]
install_command=pip install -e ".[testing]" -U {opts} {packages}
commands=
coverage erase
coverage run --source='wagtailflags' {envbindir}/django-admin.py test {posargs}
coverage report -m
setenv=
DJANGO_SETTINGS_MODULE=wagtailflags.tests.settings
basepython=
py27: python2.7
py36: python3.6
py37: python3.7
deps=
dj111: Django>=1.11,<1.12
dj21: Django>=2.1,<2.2
dj22: Django>=2.2,<2.3
wag113: wagtail>=1.13,<1.14
wag22: wagtail>=2.2,<2.3
wag23: wagtail>=2.3,<2.4
wag24: wagtail>=2.4,<2.5
[testenv:lint]
basepython=python3.6
deps=
flake8>=2.2.0
isort>=4.2.15
commands=
flake8 .
isort --check-only --diff --recursive wagtailflags
[flake8]
ignore=E731,W503,W504
exclude=
.tox,
__pycache__
[isort]
combine_as_imports=1
lines_after_imports=2
include_trailing_comma=1
multi_line_output=3
skip=.tox,migrations
not_skip=__init__.py
use_parentheses=1
known_django=django
known_wagtail=wagtail
known_future_library=future,six
default_section=THIRDPARTY
sections=FUTURE,STDLIB,DJANGO,WAGTAIL,THIRDPARTY,FIRSTPARTY,LOCALFOLDER