Some minor housekeeping fixes.
[mailman-postorious.git] / tox.ini
blobf33e04840abf7fd015f7ef8a70d9f41a9842beac
1 [tox]
2 envlist = py{36,37,38,39}-django{22,31,32,-latest},qa
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
53 [testenv:docs]
54 deps =
55 sphinx
56 sphinx-rtd-theme
57 whitelist_externals =
58 mkdir
59 commands=
60 sphinx-build -t html ../src/postorius/doc ../build/
62 [flake8]
63 basepython = python3
64 ignore = E123, E133, W504
65 show-source = True
66 exclude = .git,.tox,dist,*egg,src/postorius/doc,example_project
69 [isort]
70 line_length=79
71 multi_line_output=4
72 balanced_wrapping=True
73 known_django=django
74 sections=FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
75 no_lines_before=LOCALFOLDER
76 lines_after_imports=2
77 use_parentheses=True
78 default_section=THIRDPARTY
79 known_first_party=postorius