Codebase list django-mailman3 / upstream/1.3.7+git20211009.1.1fbc4e3 tox.ini
upstream/1.3.7+git20211009.1.1fbc4e3

Tree @upstream/1.3.7+git20211009.1.1fbc4e3 (Download .tar.gz)

tox.ini @upstream/1.3.7+git20211009.1.1fbc4e3raw · history · blame

[tox]
envlist = py{36,37,38,39}-django{22,31,32,latest},lint


[testenv]
usedevelop = True
deps =
    dev: -e../mailmanclient
    git+https://gitlab.com/mailman/mailmanclient.git
    django22: Django>=2.2,<2.3
    django30: Django>=3.0,<3.1
    django31: Django>=3.1,<3.2
    django32: Django>=3.2,<3.3
    djangolatest: https://github.com/django/django/archive/main.tar.gz
    coverage: coverage
commands =
    django-admin 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