2 envlist = {py39,py310,py311,py312}-{nocov,cov,diffcov}{,-mysql,-pg},qa
4 skip_missing_interpreters = True
8 nocov
: python
-m nose2
-v
{posargs
}
9 cov
,diffcov
: python
-m coverage run
{[coverage]rc
} -m nose2
{posargs
}
10 cov
,diffcov
: python
-m coverage combine
{[coverage]rc
}
11 cov
: python
-m coverage html
{[coverage]rc
}
12 cov: python -m coverage report -m {[coverage]rc} --fail-under=93
13 diffcov
: python
-m coverage xml
{[coverage]rc
}
14 diffcov
: diff
-cover coverage.xml
--html
-report diffcov.html
--compare
-branch origin
/master
15 diffcov: diff-cover coverage.xml --fail-under=100 --compare-branch origin/master
24 diffcov: diff_cover>=6.0
33 cov: COVERAGE_PROCESS_START={[coverage]rcfile}
34 cov: COVERAGE_OPTIONS="-p"
35 cov: COVERAGE_FILE={toxinidir}/.coverage
51 sphinx
-build
-t html . build
/sphinx
/html
52 deps = -rrequirements-docs.txt
55 rcfile = {toxinidir}/coverage.ini
56 rc = --rcfile={[coverage]rcfile}
59 exclude = src/mailman/compat/*.py
65 include_trailing_comma = True
66 known_first_party = mailman
67 length_sort_straight = True
68 lines_after_imports = 2
69 lines_between_types = 1
73 combine_as_imports = True
75 [testenv:sort-imports]
80 # setup.cfg or tox.ini