-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtox.ini
161 lines (142 loc) · 2.98 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
[tox]
isolated_build = True
envlist = py39,py310,py311,py39-activate-this,py311-activate-this,coverage-report
[testenv]
commands = {envbindir}/python -m coverage run --parallel -m unittest -v
skip_install = True
deps =
coverage
wheel
setuptools
objectgraph
typing_extensions
virtualenv
mypy
py36: dataclasses
py36: importlib_resources
[testenv:py311-activate-this]
commands = python3.11 testsuite/run-in-env.py {envdir}
skip_install = True
deps =
coverage
wheel
setuptools
objectgraph
typing_extensions
virtualenv
mypy
[testenv:py39-activate-this]
commands = python3.9 testsuite/run-in-env.py {envdir}
skip_install = True
deps =
coverage
wheel
setuptools==60.1.1
objectgraph
typing_extensions
virtualenv
mypy
[testenv:coverage-report]
basepython = python3.10
deps = coverage
skip_install = true
commands =
{envbindir}/python -mcoverage combine
{envbindir}/python -mcoverage html
{envbindir}/python -mcoverage report
[testenv:black]
basepython = python3.10
deps = black
skip_install = true
commands =
{envbindir}/python -m black --target-version py36 --exclude="modulegraph-dir" modulegraph2 testsuite
[testenv:isort]
basepython = python3.10
deps =
isort
skip_install = true
commands =
{envbindir}/python -m isort modulegraph2
[testenv:flake8]
basepython = python3.10
deps =
objectgraph
flake8>=5.0
flake8-bugbear>=22.9
flake8-deprecated>=1.3
flake8-comprehensions>=3.10
flake8-isort>=4.2
flake8-quotes>=3.3
flake8-mutable>=1.2
flake8-todo>=0.7
flake8-pep3101>=1.3
flake8-builtins>=1.5
flake8-eradicate>=1.4
flake8-broken-line>=0.5
flake8-spellcheck>=0.9
flake8-alfred>=1.1
flake8-assertive>=2.1
flake8-raise>=0.0
pep8-naming>=0.13
skip_install = True
commands =
{envbindir}/python -m flake8 modulegraph2
[testenv:mypy]
basepython = python3.10
deps =
mypy
objectgraph
skip_install = true
commands =
{envbindir}/python -m mypy modulegraph2
[testenv:upload]
# Higly experimental, might not be used...
basepython = python3.10
deps=
flit
wheel
twine
whitelist_externals =
rm
echo
hg
commands =
rm -rf dist
{envbindir}/flit build
{envbindir}/twine upload dist/*
[testenv:documentation]
basepython = python3.10
deps =
objectgraph
sphinx
sphinxcontrib.napoleon
typing_extensions
sphinx-autodoc-typehints
sphinxcontrib.blockdiag
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
[coverage:run]
branch = True
source = modulegraph2
[coverage:report]
sort = Cover
[coverage:paths]
source =
modulegraph2
.tox/*/lib/python*/site-packages/modulegraph2
[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