Some simple HTML fixes.
[mailman-postorious.git] / tox.ini
blobbce92d5a1991dedc4225c9a7b4ccdaf47ed4e7c4
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 git+https://gitlab.com/mailman/mailmanclient@master
12 git+https://gitlab.com/mailman/mailman@master
13 git+https://gitlab.com/mailman/django-mailman3.git
14 pytest
15 pytest-django
16 dev: -e../mailmanclient
17 dev: -e../django-mailman3
18 dev: https://github.com/django/django/archive/main.tar.gz
19 django22: Django>=2.2,<2.3
20 django30: Django>=3.0,<3.1
21 django31: Django>=3.1,<3.2
22 django32: Django>=3.2,<3.3
23 django40: Django>=4.0,<4.1
24 django-latest: https://github.com/django/django/archive/main.tar.gz
25 commands =
26 pytest {posargs:../src}
27 setenv =
28 LC_ALL = C.UTF-8
29 LANG = C.UTF-8
31 [testenv:cov]
32 basepython = python3
33 deps =
34 {[testenv]deps}
35 Django>=3.2,<4.1
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:qa]
46 basepython = python3
47 changedir = {toxinidir}
48 deps =
49 flake8
50 isort
51 commands =
52 flake8 {posargs}
53 isort --check-only src
55 [testenv:docs]
56 deps =
57 sphinx
58 sphinx-rtd-theme
59 whitelist_externals =
60 mkdir
61 commands=
62 sphinx-build -t html ../src/postorius/doc ../build/
64 [flake8]
65 basepython = python3
66 ignore = E123, E133, W504
67 show-source = True
68 exclude = .git,.tox,dist,*egg,src/postorius/doc,example_project
71 [isort]
72 line_length=79
73 multi_line_output=4
74 balanced_wrapping=True
75 known_django=django
76 sections=FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
77 no_lines_before=LOCALFOLDER
78 lines_after_imports=2
79 use_parentheses=True
80 default_section=THIRDPARTY
81 known_first_party=postorius