Update release date.
[mailman-postorious.git] / tox.ini
blobf285238f978a2697b6beb9363142f4e788ef0562
1 [tox]
2 envlist = py{36,37,38,39}-django{22,31,32,-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 git+https://gitlab.com/mailman/django-mailman3.git
13 pytest
14 pytest-django
15 dev: -e../mailmanclient
16 dev: -e../django-mailman3
17 dev: https://github.com/django/django/archive/main.tar.gz
18 django22: Django>=2.2,<2.3
19 django30: Django>=3.0,<3.1
20 django31: Django>=3.1,<3.2
21 django32: Django>=3.2,<3.3
22 django-latest: https://github.com/django/django/archive/main.tar.gz
23 commands =
24 pytest {posargs:../src}
25 setenv =
26 LC_ALL = C.UTF-8
27 LANG = C.UTF-8
29 [testenv:cov]
30 basepython = python3
31 deps =
32 {[testenv]deps}
33 Django>=3.2,<3.3
34 coverage
35 commands =
36 coverage run -m pytest {posargs:../src/postorius}
37 coverage html
38 coverage report -m
39 setenv =
40 LC_ALL = C.UTF-8
41 LANG = C.UTF-8
43 [testenv:qa]
44 basepython = python3
45 changedir = {toxinidir}
46 deps =
47 flake8
48 isort
49 commands =
50 flake8 {posargs}
51 isort --check-only src
54 [flake8]
55 basepython = python3
56 ignore = E123, E133, W504
57 show-source = True
58 exclude = .git,.tox,dist,*egg,src/postorius/doc,example_project
61 [isort]
62 line_length=79
63 multi_line_output=4
64 balanced_wrapping=True
65 known_django=django
66 sections=FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
67 no_lines_before=LOCALFOLDER
68 lines_after_imports=2
69 use_parentheses=True
70 default_section=THIRDPARTY
71 known_first_party=postorius