-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
56 lines (50 loc) · 1.05 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
# -*- coding: utf-8 -*-
[tox]
envlist =
py36
py35
docs
[travis]
python =
3.6: py36, docs
3.5: py35
[testenv]
deps =
-rtests/requirements.txt
passenv =
# set to "win32" or "posix".
COVERAGE_EXCLUDE
commands =
flake8 src/aiotk/ tests/
mypy src/aiotk/
coverage erase
coverage run \
--omit=*{env:COVERAGE_EXCLUDE}*.py \
-m pytest \
--ignore=tests/test_{env:COVERAGE_EXCLUDE}.py \
{posargs:-s -vv tests/}
coverage html
coverage report -m --fail-under=100
[testenv:deps.test]
basepython = python3.6
deps =
pip-tools
commands =
pip-compile --no-header --no-index \
tests/requirements.in -o tests/requirements.txt
[testenv:docs]
basepython = python3.6
deps =
-rdocs/requirements.txt
commands =
doc8 README.rst docs/
sphinx-build -W -b doctest docs/ build/docs/
sphinx-build -W -b spelling docs/ build/docs/
sphinx-build -W -E -b html docs/ build/docs/
[testenv:deps.docs]
basepython = python3.6
deps =
pip-tools
commands =
pip-compile --no-header --no-index \
docs/requirements.in -o docs/requirements.txt