File: tox.ini

package info (click to toggle)
mailman3 3.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 5,828 kB
  • sloc: python: 39,621; sh: 279; makefile: 24
file content (60 lines) | stat: -rw-r--r-- 1,393 bytes parent folder | download | duplicates (2)
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
[tox]
envlist = {py35,py36,py37}-{nocov,cov,diffcov}{,-mysql,-pg},qa
#recreate = True
skip_missing_interpreters = True

[testenv]
commands =
    nocov: python -m nose2 -v {posargs}
    cov,diffcov: python -m coverage run {[coverage]rc} -m nose2 {posargs}
    cov,diffcov: python -m coverage combine {[coverage]rc}
    cov: python -m coverage html {[coverage]rc}
    cov: python -m coverage report -m {[coverage]rc} --fail-under=93
    diffcov: python -m coverage xml {[coverage]rc}
    diffcov: diff-cover coverage.xml --html-report diffcov.html
    diffcov: diff-cover coverage.xml --fail-under=100
#sitepackages = True
usedevelop = True
deps =
     flufl.testing>=0.8
     nose2
     cov,diffcov: coverage
     pg: psycopg2-binary
     mysql: pymysql
     diffcov: diff_cover
passenv =
    MAILMAN_*
    PYTHON*
    LANG*
    LC_*
setenv =
    cov: COVERAGE_PROCESS_START={[coverage]rcfile}
    cov: COVERAGE_OPTIONS="-p"
    cov: COVERAGE_FILE={toxinidir}/.coverage

[testenv:qa]
basepython = python3
commands =
    python -m flake8 src
deps =
    flake8>3.0
    flufl.testing

[testenv:docs]
basepython = python3
commands =
    python setup.py build_sphinx
deps:
    sphinx
    docutils==0.12

[coverage]
rcfile = {toxinidir}/coverage.ini
rc = --rcfile={[coverage]rcfile}

[flake8]
enable-extensions = U4
exclude = src/mailman/compat/*.py
hang-closing = True
jobs = 1
max-line-length = 79