-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
51 lines (45 loc) · 1.16 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
[tox]
envlist =
flake8
isort
py{37,38,39}-django32-cms{38,39,310,311}
py{38,39,310}-django{32,40,41}-cms{310,311}
py{38,39,310,311}-django{32,40,41,42}-cms{310,311,41}
py{310,311}-django{50}-cms{41}
skip_missing_interpreters=True
[flake8]
exlude = migrations
max-line-length = 80
[isort]
combine_as_imports = true
default_section = THIRDPARTY
include_trailing_comma = true
known_first_party = djangocms_time_wizard
line_length = 79
multi_line_output = 5
skip = migrations
[testenv]
deps =
cms37: django-cms~=3.7
cms38: django-cms~=3.8
cms39: django-cms~=3.9
cms310: django-cms~=3.10
cms311: django-cms~=3.11
cms41: django-cms~=4.1
django32: django~=3.2
django40: django~=4.0
django41: django~=4.1
django42: django~=4.2
django50: django~=5.0
-r{toxinidir}/tests/requirements.txt
commands =
{env:COMMAND:coverage} erase
{env:COMMAND:coverage} run tests/settings.py test --extra-settings=tests/settings.py --cms
{env:COMMAND:coverage} report
[testenv:flake8]
deps = flake8
commands = flake8 djangocms_time_wizard
[testenv:isort]
deps = isort
commands = isort -c djangocms_time_wizard
skip_install = true