forked from divio/aldryn-search
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
56 lines (50 loc) · 1.03 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
[tox]
envlist =
flake8
isort
py{38,39,310}-cms311
skip_missing_interpreters=True
[flake8]
ignore = E251,E128,E501
max-line-length = 119
exclude =
*.egg-info,
.eggs,
.git,
.settings,
.tox,
build,
data,
dist,
docs,
*migrations*,
requirements,
tmp
[isort]
line_length = 120
skip = manage.py, *migrations*, .tox, .eggs, data
include_trailing_comma = true
multi_line_output = 5
not_skip = __init__.py
lines_after_imports = 2
default_section = THIRDPARTY
sections = FUTURE, STDLIB, DJANGO, CMS, THIRDPARTY, FIRSTPARTY, LIB, LOCALFOLDER
known_first_party = aldryn_search
known_cms = cms, menus
known_django = django
[testenv]
deps =
-r{toxinidir}/tests/requirements.txt
cms311: django-cms~=3.11
commands =
{envpython} --version
{env:COMMAND:coverage} erase
{env:COMMAND:coverage} run setup.py test
{env:COMMAND:coverage} report
[testenv:flake8]
deps = flake8
commands = flake8
[testenv:isort]
deps = isort
commands = isort -c -rc -df aldryn_search
skip_install = true