generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
125 lines (107 loc) · 2.93 KB
/
pyproject.toml
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
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
[project]
name = "swagger-plugin-for-sphinx"
version = "4.0.0"
description = "Sphinx plugin which renders a OpenAPI specification with Swagger"
authors = [{ name = "Kai Harder", email = "[email protected]" }]
readme = "README.md"
keywords = ["sphinx", "swagger", "plugin", "openapi"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Plugins",
"Framework :: Sphinx :: Extension",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Documentation",
"Topic :: Documentation :: Sphinx",
"Typing :: Typed",
]
requires-python = ">=3.9,<4"
dependencies = ["sphinx>=6.0,<9", "jinja2~=3.0", "docutils"]
[project.license]
text = "Apache-2.0"
[project.urls]
"Issue Tracker" = "https://github.com/SAP/swagger-plugin-for-sphinx/issues"
"Changelog" = "https://github.com/SAP/swagger-plugin-for-sphinx/blob/main/CHANGELOG.md"
[project.optional-dependencies]
dev = [
"pre-commit==4.0.1",
"pylint==3.3.1",
"black==24.10.0",
"isort==5.13.2",
"flake8==7.1.1",
"mypy==1.13.0",
"types-docutils==0.21.0.20241005",
]
test = [
"pytest==8.3.3",
"coverage==7.6.7",
"diff-cover==9.2.0",
"pytest-cov==6.0.0",
"selenium==4.26.1",
]
[tool.setuptools.packages.find]
include = ["swagger_plugin_for_sphinx"]
[tool.setuptools.package-data]
swagger_plugin_for_sphinx = ["py.typed", "*.j2"]
[tool.isort]
profile = "black"
add_imports = ["from __future__ import annotations"]
[tool.mypy]
# main config
strict_optional = true
warn_incomplete_stub = true
warn_no_return = true
warn_unreachable = true
strict = true
# output
pretty = true
show_column_numbers = true
show_error_codes = true
show_traceback = true
[tool.pylint.basic]
no-docstring-rgx = "^_"
[tool.pylint.design]
min-public-methods = 0
[tool.pylint.master]
max-line-length = 100
py-version = [3, 8]
[tool.pylint."messages control"]
enable = ["all"]
disable = [
# allow TODO comments
"fixme",
# allow disables
"locally-disabled",
"suppressed-message",
# disable too-many checks
"too-many-positional-arguments",
]
[tool.pylint.reports]
reports = false
[tool.pylint.similarities]
ignore-imports = true
[tool.coverage.report]
fail_under = 90
show_missing = true
skip_covered = true
[tool.coverage.run]
branch = true
[tool.diff_cover]
include_untracked = true
fail_under = 90
[tool.pytest.ini_options]
markers = ["integration: integration tests"]
xfail_strict = true
addopts = "--strict-markers"