-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
231 lines (205 loc) · 5.21 KB
/
pyproject.toml
File metadata and controls
231 lines (205 loc) · 5.21 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools~=82.0", "setuptools-scm~=10.0"]
[project]
authors = [
{name = "Kai Harder", email = "kai.harder@sap.com"},
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Plugins",
"Framework :: Sphinx :: Extension",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Documentation",
"Topic :: Documentation :: Sphinx",
"Typing :: Typed",
]
dependencies = [
"sphinx>=8.0,<10",
"jinja2~=3.0",
"docutils",
"typing_extensions~=4.5",
]
description = "Sphinx plugin which renders a OpenAPI specification with Swagger"
dynamic = ["version"]
keywords = [
"sphinx",
"swagger",
"plugin",
"openapi",
]
license = "Apache-2.0"
license-files = [
"LICENSE",
]
name = "swagger-plugin-for-sphinx"
readme = "README.md"
requires-python = ">=3.10,<4"
[project.urls]
Changelog = "https://github.com/SAP/swagger-plugin-for-sphinx/blob/main/CHANGELOG.md"
"Issue Tracker" = "https://github.com/SAP/swagger-plugin-for-sphinx/issues"
[dependency-groups]
dev = [
"pre-commit==4.5.1",
"pylint==4.0.5",
"black==26.3.1",
"isort==8.0.1",
"flake8==7.3.0",
"flake8-tergeo==26.4.9.0",
"mypy==1.20.0",
"types-docutils==0.22.3.20260408",
"yesqa==1.5.0",
"types-PyYAML==6.0.12.20260408",
"pyupgrade==3.21.2",
"toml-sort==0.24.4",
"pylint-per-file-ignores==3.2.1",
"uv==0.11.6",
"towncrier==25.8.0",
]
test = [
"pytest==9.0.3",
"coverage==7.13.5",
"diff-cover==10.2.0",
"pytest-cov==7.1.0",
"selenium==4.43.0",
"pyyaml==6.0.3",
"pytest-randomly==4.0.1",
]
[tool.coverage.report]
fail_under = 90
show_missing = true
skip_covered = true
[tool.coverage.run]
branch = true
patch = ["subprocess"]
[tool.diff_cover]
fail_under = 90
include_untracked = true
[tool.isort]
add_imports = [
"from __future__ import annotations",
]
profile = "black"
[tool.mypy]
enable_error_code = [
"explicit-override",
"possibly-undefined",
"ignore-without-code",
"deprecated",
"redundant-self",
"truthy-iterable",
"unused-awaitable",
"exhaustive-match",
]
pretty = true
show_column_numbers = true
show_error_codes = true
show_traceback = true
strict = true
strict_bytes = true
strict_concatenate = true
strict_equality_for_none = true
strict_optional = true
warn_incomplete_stub = true
warn_no_return = true
warn_unreachable = true
warn_unused_ignores = true
[tool.pylint.basic]
no-docstring-rgx = "^_"
[tool.pylint.design]
min-public-methods = 0
[tool.pylint.master]
load-plugins = [
"pylint_per_file_ignores",
"pylint.extensions.bad_builtin",
"pylint.extensions.check_elif",
"pylint.extensions.code_style",
"pylint.extensions.comparison_placement",
"pylint.extensions.confusing_elif",
"pylint.extensions.dict_init_mutate",
"pylint.extensions.docparams",
"pylint.extensions.docstyle",
"pylint.extensions.empty_comment",
"pylint.extensions.eq_without_hash",
"pylint.extensions.for_any_all",
"pylint.extensions.overlapping_exceptions",
"pylint.extensions.private_import",
"pylint.extensions.set_membership",
"pylint.extensions.typing",
]
max-line-length = 100
py-version = [3, 10]
[tool.pylint."messages control"]
disable = [
"fixme",
"locally-disabled",
"suppressed-message",
"too-many-positional-arguments",
"too-many-locals",
"too-many-arguments",
"consider-using-assignment-expr",
]
enable = ["all"]
per-file-ignores = "tests/**:missing-function-docstring,missing-class-docstring,redefined-outer-name,protected-access,unused-argument,import-private-name"
[tool.pylint.reports]
reports = false
[tool.pylint.similarities]
ignore-imports = true
[tool.pytest]
addopts = ["-p", "no:legacypath"]
filterwarnings = [
"error",
"ignore:'sphinx.environment.BuildEnvironment.app' is deprecated.*:",
]
markers = [
"integration: integration tests",
]
strict = true
[tool.setuptools.package-data]
swagger_plugin_for_sphinx = [
"py.typed",
"*.j2",
]
[tool.setuptools.packages.find]
include = [
"swagger_plugin_for_sphinx",
]
[tool.setuptools_scm]
version_file = ""
[tool.tomlsort]
sort_first = ["build-system", "project", "project.urls", "dependency-groups"]
sort_table_keys = true
spaces_indent_inline_array = 4
trailing_comma_inline_array = true
[tool.towncrier]
directory = "news"
filename = "CHANGELOG.md"
start_string = "<!-- towncrier release notes start -->\n"
title_format = "## {version} ({project_date})"
underlines = ["", "", ""]
[[tool.towncrier.type]]
directory = "removal"
name = "Removals"
[[tool.towncrier.type]]
directory = "deprecation"
name = "Deprecations"
[[tool.towncrier.type]]
directory = "feature"
name = "Features"
[[tool.towncrier.type]]
directory = "change"
name = "Changes"
[[tool.towncrier.type]]
directory = "fix"
name = "Fixes"
[tool.uv]
default-groups = []