Update po files
[mailman-postorious.git] / tox.ini
blobde3b9300abdd7a2feaf436bfd09bfa1da6063468
1 [tox]
2 envlist = py{35,36,37}-django{111,20,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 pytest
13 pytest-django
14 head: git+https://gitlab.com/mailman/mailmanclient.git
15 head: git+https://gitlab.com/mailman/django-mailman3.git
16 dev: -e../mailmanclient
17 dev: -e../django-mailman3
18 dev: https://github.com/django/django/archive/master.tar.gz
19 django20: Django>=2.0,<2.1
20 django21: Django>=2.1,<2.2
21 django22: Django>=2.2,<2.3
22 django30: Django>=3.0,<3.1
23 django-latest: https://github.com/django/django/archive/master.tar.gz
24 commands =
25 pytest {posargs:../src}
26 setenv =
27 LC_ALL = C.UTF-8
28 LANG = C.UTF-8
30 [testenv:coverage]
31 basepython = python3
32 deps =
33 {[testenv]deps}
34 Django>=2.1,<2.2
35 coverage
36 commands =
37 coverage run -m pytest {posargs:../src/postorius}
38 coverage html
39 coverage report -m
40 setenv =
41 LC_ALL = C.UTF-8
42 LANG = C.UTF-8
44 [testenv:pep8]
45 basepython = python3
46 changedir = {toxinidir}
47 deps =
48 flake8
49 Django>1.11,<2.2
50 isort
51 commands =
52 flake8 {posargs}
53 python setup.py isort
56 [flake8]
57 basepython = python3
58 ignore = E123, E133, W504
59 show-source = True
60 exclude = .git,.tox,dist,*egg,src/postorius/doc,example_project
63 [isort]
64 line_length=79
65 multi_line_output=4
66 balanced_wrapping=True
67 known_django=django
68 sections=FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
69 no_lines_before=LOCALFOLDER
70 lines_after_imports=2
71 use_parentheses=True
72 default_section=THIRDPARTY
73 known_first_party=postorius