-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
58 lines (52 loc) · 1.11 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
[tox]
skipsdist=True
envlist=
lint,
py{36}-dj{111,22}-wag{23},
py{36,38}-dj{22}-wag{29,210}
[testenv]
install_command=pip install -e ".[testing]" -U {opts} {packages}
commands=
coverage run {envbindir}/django-admin.py test {posargs}
setenv=
DJANGO_SETTINGS_MODULE=wagtailsharing.tests.settings
basepython=
py36: python3.6
py38: python3.8
deps=
mock>=1.0.0
dj111: Django>=1.11,<1.12
dj22: Django>=2.2,<2.3
wag23: wagtail>=2.3,<2.4
wag29: wagtail>=2.9,<2.10
wag210: wagtail>=2.10,<2.11
[testenv:lint]
recreate=False
basepython=python3.6
deps=
black
flake8
isort
commands=
black --check wagtailsharing setup.py
flake8 wagtailsharing
isort --check-only --diff wagtailsharing
[flake8]
ignore=E731,W503,W504
exclude=
.git,
.tox,
__pycache__,
*/migrations/*.py,
.eggs/*,
[isort]
combine_as_imports=1
lines_after_imports=2
include_trailing_comma=1
multi_line_output=3
skip=.tox,migrations
use_parentheses=1
known_django=django
known_future_library=future
default_section=THIRDPARTY
sections=FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER