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 54 55 56 57 58 59 60 61 62 63 64 65
|
[tox]
envlist = py{39,310,311,312}-django{42,50},docs,qa
[testenv]
usedevelop = True
deps =
setuptools
Whoosh
beautifulsoup4
lxml
coverage
elasticsearch<9.0.0
django-debug-toolbar
pytest-django
pytest-cov
head: git+https://gitlab.com/mailman/django-mailman3.git
head: git+https://gitlab.com/mailman/mailmanclient.git
dev: -e../django-haystack
dev: -e../mailmanclient
dev: -e../django-mailman3
django42: django>=4.2,<4.3
django50: django>=5.0,<5.1
commands =
pytest {posargs:hyperkitty}
cov: pytest --cov=hyperkitty {posargs:hyperkitty}
cov: coverage report
[testenv:docs]
changedir = doc
deps = sphinx
allowlist_externals =
mkdir
commands=
mkdir -p {toxinidir}/doc/_static
sphinx-build -W -D html_theme=alabaster -b html -d {envtmpdir}/doctrees . {toxinidir}/doc/_build/html
[testenv:qa]
basepython = python3
deps =
flake8 > 3.0
isort
commands =
python -m flake8 {posargs:hyperkitty}
isort --check-only hyperkitty/
[flake8]
show-source = True
exclude = .git,.tox,dist,*egg,doc
[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=hyperkitty
|