Min supported version is Python 3.8 for Django latest.
[mailman-postorious.git] / tox.ini
blob33421b885d6c4816db18dbf8d468cc06441db83c
1 [tox]
2 envlist = py{35,36,37}-django{111,20,latest},pep8
4 [testenv]
5 usedevelop = True
6 changedir = {toxinidir}/example_project
7 deps =
8 mock
9 beautifulsoup4
10 git+https://gitlab.com/mailman/mailmanclient@master
11 git+https://gitlab.com/mailman/mailman@master
12 pytest
13 pytest-django
14 head: git+https://gitlab.com/mailman/mailmanclient.git
15 head: git+https://gitlab.com/mailman/django-mailman3.git
16 dev: -e../mailmanclient
17 dev: -e../django-mailman3
18 dev: https://github.com/django/django/archive/master.tar.gz
19 django20: Django>=2.0,<2.1
20 django21: Django>=2.1,<2.2
21 django22: Django>=2.2,<2.3
22 django30: Django>=3.0,<3.1
23 django31: Django>=3.1,<3.2
24 django-latest: https://github.com/django/django/archive/master.tar.gz
25 commands =
26 pytest {posargs:../src}
27 setenv =
28 LC_ALL = C.UTF-8
29 LANG = C.UTF-8
31 [testenv:coverage]
32 basepython = python3
33 deps =
34 {[testenv]deps}
35 Django>=2.1,<2.2
36 coverage
37 commands =
38 coverage run -m pytest {posargs:../src/postorius}
39 coverage html
40 coverage report -m
41 setenv =
42 LC_ALL = C.UTF-8
43 LANG = C.UTF-8
45 [testenv:pep8]
46 basepython = python3
47 changedir = {toxinidir}
48 deps =
49 flake8
50 Django>1.11,<2.2
51 isort
52 commands =
53 flake8 {posargs}
54 python setup.py isort
57 [flake8]
58 basepython = python3
59 ignore = E123, E133, W504
60 show-source = True
61 exclude = .git,.tox,dist,*egg,src/postorius/doc,example_project
64 [isort]
65 line_length=79
66 multi_line_output=4
67 balanced_wrapping=True
68 known_django=django
69 sections=FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
70 no_lines_before=LOCALFOLDER
71 lines_after_imports=2
72 use_parentheses=True
73 default_section=THIRDPARTY
74 known_first_party=postorius