-
Notifications
You must be signed in to change notification settings - Fork 19
/
tox.ini
72 lines (64 loc) · 1.45 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
[tox]
envlist =
flake8
isort
black
py{38,39,310}-dj{30,31,32}-cms{38,39,310,311}
py{38,39,310}-dj{40,41}-cms{311}
skip_missing_interpreters=True
[flake8]
max-line-length = 119
exclude =
env,
*.egg-info,
.eggs,
.git,
.settings,
.tox,
build,
data,
dist,
docs,
*migrations*,
requirements,
tmp
[isort]
line_length = 79
skip = manage.py, *migrations*, .tox, .eggs, data, env
include_trailing_comma = true
multi_line_output = 5
lines_after_imports = 2
default_section = THIRDPARTY
sections = FUTURE, STDLIB, DJANGO, CMS, THIRDPARTY, FIRSTPARTY, LOCALFOLDER
known_first_party = djangocms_transfer
known_cms = cms, menus
known_django = django
[testenv]
deps =
-r{toxinidir}/tests/requirements/base.txt
dj30: Django>=3.0,<3.1
dj31: Django>=3.1,<3.2
dj32: Django>=3.2,<4.0
dj40: Django>=4.0,<4.1
dj41: Django>=4.1,<4.2
cms37: django-cms>=3.7,<3.8
cms38: django-cms>=3.8,<3.9
cms39: django-cms>=3.9,<3.10
cms310: django-cms>=3.10,<3.11
cms311: django-cms>=3.11,<3.12
commands =
{envpython} --version
{env:COMMAND:coverage} erase
{env:COMMAND:coverage} run setup.py test
{env:COMMAND:coverage} report
[testenv:flake8]
deps = flake8
commands = flake8 djangocms_transfer
[testenv:isort]
deps = isort
commands = isort -c --df djangocms_transfer
skip_install = true
[testenv:black]
allowlist_externals = tools/black
deps = black
commands = tools/black --check