-
Notifications
You must be signed in to change notification settings - Fork 35
/
tox.ini
67 lines (58 loc) · 1.35 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 = py37,py38,py39,py310
envlist = py27,py39,py310,py311
isolated_build = True
[testenv]
;commands = {envbindir}/python -mcoverage run --parallel -m unittest -v py2app_tests/
commands = {envbindir}/python -m unittest discover -v
deps =
altgraph
macholib
modulegraph
coverage
pyobjc
importlib_metadata >= 4.7 ; python_version < '3.10'
importlib_resources >= 4.7 ; python_version < '3.10'
[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage html
coverage report
[testenv:mypy]
basepython = python3.10
deps =
mypy
rich
types-setuptools
types-Pillow
types-attrs
packaging
skip_install = true
setenv = MYPYPATH = {toxinidir}/stubs
commands =
{envbindir}/python -m mypy --namespace-packages --check-untyped-defs --install-types src --disallow-untyped-defs
; {envbindir}/python -m mypy --explicit-package-bases --namespace-packages --check-untyped-defs src
[coverage:run]
branch = True
source = py2app
[coverage:report]
sort = Cover
[coverage:paths]
source =
py2app
.tox/*/lib/python*/site-packages/py2app
[flake8]
max-line-length = 80
select = C,E,F,W,B,B950,T,Q,M,R
ignore = E501,W503
inline-quotes = double
multiline-quotes = double
docstring-quotes = double
[isort]
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
line_length=88