Merge branch 'fix-docs' into 'master'
[mailman-postorious.git] / tox.ini
blob1b0aa7dfdc60ea1b08900bb48b6277403d022ee6
1 [tox]
2 envlist = py{36,37,38,39,310}-django{22,31,32,-latest},qa
4 [testenv]
5 usedevelop = True
6 changedir = {toxinidir}/example_project
7 deps =
8 mock
9 beautifulsoup4
10 django-debug-toolbar
11 django-requests-debug-toolbar
12 falcon<3.1
13 git+https://gitlab.com/mailman/mailmanclient@master
14 git+https://gitlab.com/mailman/mailman@master
15 git+https://gitlab.com/mailman/django-mailman3.git
16 pytest
17 pytest-django
18 dev: -e../mailmanclient
19 dev: -e../django-mailman3
20 dev: https://github.com/django/django/archive/main.tar.gz
21 django22: Django>=2.2,<2.3
22 django30: Django>=3.0,<3.1
23 django31: Django>=3.1,<3.2
24 django32: Django>=3.2,<3.3
25 django40: Django>=4.0,<4.1
26 django-latest: https://github.com/django/django/archive/main.tar.gz
27 commands =
28 pytest {posargs:../src}
29 setenv =
30 LC_ALL = C.UTF-8
31 LANG = C.UTF-8
33 [testenv:cov]
34 basepython = python3
35 deps =
36 {[testenv]deps}
37 Django>=3.2,<4.1
38 coverage
39 commands =
40 coverage run -m pytest {posargs:../src/postorius}
41 coverage html
42 coverage report -m
43 setenv =
44 LC_ALL = C.UTF-8
45 LANG = C.UTF-8
47 [testenv:qa]
48 basepython = python3
49 changedir = {toxinidir}
50 deps =
51 flake8
52 isort
53 commands =
54 flake8 {posargs}
55 isort --check-only src
57 [testenv:docs]
58 deps =
59 sphinx
60 sphinx-rtd-theme
61 whitelist_externals =
62 mkdir
63 commands=
64 sphinx-build -t html ../src/postorius/doc ../build/
66 [flake8]
67 basepython = python3
68 ignore = E123, E133, W504
69 show-source = True
70 exclude = .git,.tox,dist,*egg,src/postorius/doc,example_project
73 [isort]
74 line_length=79
75 multi_line_output=4
76 balanced_wrapping=True
77 known_django=django
78 sections=FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
79 no_lines_before=LOCALFOLDER
80 lines_after_imports=2
81 use_parentheses=True
82 default_section=THIRDPARTY
83 known_first_party=postorius