Don't use `flake8: noqa`.
[mailman.git] / tox.ini
blob500decfefc68aff620e2c815fad4ef8817c2b79a
1 [tox]
2 envlist = {py34,py35}{,-coverage,-diffcov}{,-pg},qa
3 recreate = True
4 skip_missing_interpreters = True
6 [testenv]
7 commands =
8 python -m nose2 -v
9 {coverage,diffcov}: python -m coverage run {[coverage]rc} -m nose2 -v
10 {coverage,diffcov}: python -m coverage combine {[coverage]rc}
11 coverage: python -m coverage html {[coverage]rc}
12 coverage: python -m coverage report -m {[coverage]rc}
13 diffcov: python -m coverage xml {[coverage]rc}
14 diffcov: diff-cover coverage.xml --html-report diffcov.html
15 diffcov: diff-cover coverage.xml
16 #sitepackages = True
17 usedevelop = True
18 deps =
19 {coverage,diffcov}: coverage
20 pg: psycopg2
21 diffcov: diff_cover
22 passenv=
23 MAILMAN_*
24 setenv =
25 coverage: COVERAGE_PROCESS_START={[coverage]rcfile}
26 coverage: COVERAGE_OPTIONS="-p"
27 coverage: COVERAGE_FILE={toxinidir}/.coverage
29 [testenv:qa]
30 basepython = python3.5
31 commands =
32 python -m flake8 src
33 deps =
34 flake8
36 [coverage]
37 rcfile = {toxinidir}/coverage.ini
38 rc = --rcfile={[coverage]rcfile}
40 [flake8]
41 max-line-length = 79
42 exclude = src/mailman/compat/*.py