-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathtox.ini
More file actions
138 lines (119 loc) · 2.67 KB
/
Copy pathtox.ini
File metadata and controls
138 lines (119 loc) · 2.67 KB
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
[tox]
isolated_build = True
envlist = py310,py311,py312,py313,py314,py315,py313t,py314t,py315t,py310-old-setuptools,coverage-report
[testenv]
commands = {envbindir}/python -m coverage run --parallel -m unittest -v
deps =
coverage
setuptools
objectgraph
virtualenv
wheel
mypy
[testenv:py310-old-setuptools]
# Tests for support of 'setuptools.extern.VendorImporter' require
# an old version of setuptools. See issue #32
commands = {envbindir}/python -m coverage run --parallel -m unittest -v
deps =
coverage
setuptools<71.0
objectgraph
virtualenv
wheel
mypy
[testenv:{py310,py311,py312,py313,py314}-activate-this]
commands = python{py_dot_ver} testsuite/run-in-env.py {envdir}
deps =
{[testenv]deps}
[testenv:coverage-report]
basepython = python3.14
deps = coverage
skip_install = true
commands =
{envbindir}/python -mcoverage combine
{envbindir}/python -mcoverage html
{envbindir}/python -mcoverage report
[testenv:black]
basepython = python3.14
deps = black
skip_install = true
commands =
{envbindir}/python -m black --target-version py310 modulegraph2
[testenv:isort]
basepython = python3.14
deps =
isort
skip_install = true
commands =
{envbindir}/python -m isort modulegraph2
[testenv:flake8]
basepython = python3.14
deps =
flake8-bugbear
flake8-deprecated
flake8-comprehensions
flake8-isort
flake8-quotes
flake8-mutable
flake8-todo
flake8-raise
skip_install = True
commands =
{envbindir}/python -m flake8 modulegraph2
[testenv:mypy]
basepython = python3.14
deps =
mypy
types-six
commands =
{envbindir}/python -m mypy modulegraph2
[testenv:upload]
# Higly experimental, might not be used...
basepython = python3.14
deps=
flit
wheel
twine
allowlist_externals =
rm
commands =
rm -rf dist
{envbindir}/flit build
{envbindir}/twine check dist/*
{envbindir}/twine upload dist/*
[testenv:documentation]
basepython = python3.14
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