-
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (87 loc) · 2.05 KB
/
pyproject.toml
File metadata and controls
100 lines (87 loc) · 2.05 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
[project]
name = "openapi3-parser"
version = "1.3.0"
description = "OpenAPI v3 parser"
readme = "readme.md"
license = { file = "license.txt" }
authors = [{ name = "Artem Manchenkov", email = "artem@manchenkoff.me" }]
requires-python = ">=3.10"
keywords = [
"swagger",
"python",
"swagger-parser",
"openapi3-parser",
"parser",
"openapi3",
"swagger-api",
]
classifiers = [
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"openapi-spec-validator>=0.8.5",
"prance>=25.4.8.0",
]
[project.urls]
homepage = "https://github.com/manchenkoff/openapi3-parser"
source = "https://github.com/manchenkoff/openapi3-parser"
[dependency-groups]
dev = [
"mypy>=2.1.0",
"pytest>=9.0.3",
"pytest-cov>=6.1.0",
"python-semantic-release>=10.5.3",
"ruff>=0.15.13",
"ty>=0.0.37",
]
[build-system]
requires = ["uv_build>=0.11.12,<0.12"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-name = "openapi_parser"
[tool.semantic_release]
version_toml = ["pyproject.toml:project.version"]
branch = "main"
build_command = """
uv lock --upgrade-package "$PACKAGE_NAME"
git add uv.lock
uv build
"""
upload_to_pypi = true
upload_to_release = true
remove_dist = true
[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true
[tool.mypy]
python_version = "3.10"
strict = true
mypy_path = ["src"]
[[tool.mypy.overrides]]
module = "tests.*"
[[tool.mypy.overrides]]
module = "prance"
ignore_missing_imports = true
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort
"ARG", # unused arguments
"RUF100", # unused noqa
"TID252", # ban relative imports
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["D", "ARG"]
[tool.coverage.run]
source = ["openapi_parser"]
omit = ["tests/*"]