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