File: tox.ini

package info (click to toggle)
django-mailman3 1.3.5-2%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,440 kB
  • sloc: python: 2,049; makefile: 18; javascript: 14
file content (53 lines) | stat: -rw-r--r-- 1,314 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[tox]
envlist = py{37,38,39}-django{21,22,30,31},lint


[testenv]
usedevelop = True
deps =
    dev: -e../mailmanclient
    head: git+https://gitlab.com/mailman/mailmanclient.git
    django21: Django>=2.1,<2.2
    django22: Django>=2.2,<2.3
    django30: Django>=3.0,<3.1
    django31: Django>=3.1,<3.2
    djangolatest: https://github.com/django/django/archive/master.tar.gz
    coverage: coverage
commands =
    django-admin.py test --settings=django_mailman3.tests.settings_test {posargs:django_mailman3}

[testenv:coverage]
basepython = python3
commands =
    coverage run {envbindir}/django-admin.py test --settings=django_mailman3.tests.settings_test {posargs:django_mailman3}
    coverage html
    coverage report -m


[testenv:lint]
basepython = python3
deps =
    flake8>3.0
    isort
    flake8-gl-codeclimate
commands =
    flake8 --format gl-codeclimate --output-file gl-code-quality-report.json {posargs}
    python setup.py isort


[flake8]
show-source = True
exclude = .git,.tox,dist,*egg,django_mailman3/migrations


[isort]
line_length=79
multi_line_output=4
balanced_wrapping=True
known_django=django
sections=FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
no_lines_before=LOCALFOLDER
lines_after_imports=2
use_parentheses=True
default_section=THIRDPARTY
known_first_party=django_mailman3