forked from LUKKIEN/wagtailformblocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
40 lines (32 loc) · 815 Bytes
/
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
[tox]
skip_missing_interpreters = True
skipsdist = True
envlist =
py{34,35,36}-dj2-wt2,
isort,flake8,docs
[testenv]
usedevelop = True
install_command = pip install -e ".[testing]" -U {opts} {packages}
commands = py.test --cov=wagtailformblocks --cov-report=xml tests/
basepython =
py34: python3.4
py35: python3.5
py36: python3.6
deps =
dj2: django>=2.0,<2.1
wt2: wagtail>=2.0,<2.1
setenv =
DJANGO_SETTINGS_MODULE=tests.app.settings
[testenv:isort]
deps = isort
basepython = python3
commands = isort --recursive --diff --check-only wagtailformblocks tests
[testenv:docs]
whitelist_externals = make
basepython = python3
deps = -e.[docs]
commands = make -C docs/ SPHINXOPTS=-W clean html
[testenv:flake8]
deps=flake8
basepython=python3
commands=flake8 wagtailformblocks/ tests/