forked from cole/aiosmtplib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
67 lines (60 loc) · 1.64 KB
/
tox.ini
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
66
67
[tox]
envlist = clean, check, docs, py{35,36,37}-{asyncio,uvloop}, pypy3-asyncio, coverage
skip_missing_interpreters = true
[travis]
python =
3.5: docs, clean, py35-{asyncio,uvloop}, coverage
3.5-dev: clean, py35-{asyncio,uvloop}, coverage
3.6: docs, check, clean, py36-{asyncio,uvloop}, coverage
3.6-dev: clean, py36-{asyncio,uvloop}, coverage
nightly: clean, py37-{asyncio,uvloop}, coverage
pypy3.5-5.9.0: clean, pypy3-asyncio, coverage
[travis:env]
EVENT_LOOP =
asyncio: docs, check, clean, asyncio, coverage
uvloop: clean, uvloop, coverage
[testenv]
extras = testing
deps =
uvloop: uvloop
commands =
asyncio: py.test -vv --cov=aiosmtplib --cov-report= --event-loop=asyncio {posargs}
uvloop: py.test -vv --cov=aiosmtplib --cov-report= --event-loop=uvloop {posargs}
setenv =
COVERAGE_FILE = .coverage.{envname}
passenv = *
[testenv:clean]
setenv =
COVERAGE_FILE = .coverage
deps = coverage
commands = coverage erase
skip_install = true
[testenv:check]
deps =
flake8
flake8-isort
mypy
bandit
commands =
python setup.py check --strict --metadata
flake8 --config=setup.cfg setup.py src tests
mypy src
bandit -n 10 -s B101 -r src/
skip_install = true
[testenv:docs]
changedir = docs
deps = -rdocs/requirements.txt
extras = testing
commands =
sphinx-build -nWT -b doctest -d {envtmpdir}/doctrees . {envtmpdir}/html
sphinx-build -nWT -b dummy -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:coverage]
setenv =
COVERAGE_FILE = .coverage
deps =
coverage
commands =
coverage combine
coverage report --fail-under=90
coverage html -d coverage
skip_install = true