-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
95 lines (80 loc) · 1.76 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[tox]
isolated_build = True
# py37,py39
envlist = isort,black,py38,flake8,coverage-report
[testenv]
commands = {envbindir}/python -m coverage run --parallel -m unittest -v
deps =
coverage
wheel
setuptools
[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
{envbindir}/python -mcoverage combine
{envbindir}/python -mcoverage html --show-contexts
{envbindir}/python -mcoverage report
[testenv:black]
basepython = python3.7
deps = black
skip_install = true
commands =
{envbindir}/python -m black --target-version py37 .
[testenv:isort]
basepython = python3.7
deps =
isort
skip_install = true
commands =
{envbindir}/python -m isort --recursive . testsuite
[testenv:flake8]
basepython = python3.7
deps =
flake8
flake8-bugbear
flake8-deprecated
flake8-comprehensions
flake8-isort
flake8-quotes
flake8-mutable
flake8-todo
flake8-builtins
skip_install = True
commands =
{envbindir}/python -m flake8 objc_asyncio testsuite
[coverage:run]
branch = True
source = objc_asyncio
dynamic_context = test_function
[coverage:report]
sort = Cover
[coverage:paths]
source =
objc_asyncio
.tox/*/lib/python*/site-packages/objc_asyncio
[testenv:mypy]
basepython = python3.8
deps = mypy
skip_install = true
setenv = MYPYPATH = {toxinidir}/stubs
commands =
{envbindir}/python -m mypy objc_asyncio
[testenv:flit]
basepython = python3.7
skip_install = True
deps =
pyobjc-framework-Cocoa
flit
commands =
{envbindir}/flit build
[testenv:documentation]
basepython = python3.7
deps =
sphinx
typing_extensions
skip_install = true
changedir = doc
commands =
{envbindir}/sphinx-build -b html -d _build/doctrees . _build/html
{envbindir}/sphinx-build -b linkcheck -d _build/doctrees . _build/linkcheck