Fix pep8 errors for new versions of flake8.
[mailman-postorious.git] / tox.ini
blob2b5b4419fca320f80c780f7724463c4e27987a43
1 [tox]
2 envlist = py{35,36}-django{111,20,latest},pep8
4 [testenv]
5 basepython = python3
6 usedevelop = True
7 deps =
8 mock
9 vcrpy
10 beautifulsoup4
11 head: git+https://gitlab.com/mailman/mailmanclient.git
12 head: git+https://gitlab.com/mailman/django-mailman3.git
13 dev,record: -e../mailmanclient
14 dev,record: -e../django-mailman3
15 dev,record: Django>=1.11,<1.12
16 django111: Django>=1.11,<1.12
17 django20: Django>=2.0,<2.1
18 django21: Django>=2.1,<2.2
19 django-latest: https://github.com/django/django/archive/master.tar.gz
20 commands =
21 python example_project/manage.py test --settings=test_settings {posargs:postorius}
22 setenv =
23 PYTHONPATH = {toxinidir}
24 record: POSTORIUS_VCR_RECORD_MODE = all
27 [testenv:coverage]
28 deps =
29 mock
30 vcrpy
31 coverage
32 beautifulsoup4
33 Django>=1.11,<1.12
34 commands =
35 coverage: coverage run example_project/manage.py test --settings=test_settings {posargs:postorius}
36 coverage: coverage html
37 coverage: coverage report -m
40 [testenv:pep8]
41 deps =
42 flake8
43 Django>1.11,<1.12
44 commands =
45 flake8 {posargs}
48 [flake8]
49 ignore = E123, E133, W504
50 show-source = True
51 exclude = .git,.tox,dist,*egg,src/postorius/doc,example_project