forked from python-openapi/openapi-spec-validator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
143 lines (119 loc) · 3.03 KB
/
pyproject.toml
File metadata and controls
143 lines (119 loc) · 3.03 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
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.coverage.run]
branch = true
source =["openapi_spec_validator"]
[tool.coverage.xml]
output = "reports/coverage.xml"
[tool.mypy]
files = "openapi_spec_validator"
strict = true
[[tool.mypy.overrides]]
module = "jsonschema.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "jsonschema_specifications"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "lazy_object_proxy.*"
ignore_missing_imports = true
[tool.poetry]
name = "openapi-spec-validator"
version = "0.7.2"
description = "OpenAPI 2.0 (aka Swagger) and OpenAPI 3 spec validator"
authors = ["Artur Maciag <maciag.artur@gmail.com>"]
license = "Apache-2.0"
readme = "README.rst"
repository = "https://github.com/python-openapi/openapi-spec-validator"
keywords = ["openapi", "swagger", "schema"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"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 :: Software Development :: Libraries",
"Typing :: Typed",
]
include = [
{path = "tests", format = "sdist"},
]
[tool.poetry.dependencies]
jsonschema = "^4.24.0"
openapi-schema-validator = "^0.6.0"
python = "^3.9.0"
jsonschema-path = "^0.3.1"
lazy-object-proxy = "^1.7.1"
[tool.poetry.extras]
docs = ["sphinx", "sphinx-immaterial"]
[tool.poetry.scripts]
openapi-spec-validator = "openapi_spec_validator.__main__:main"
[tool.poetry.group.docs.dependencies]
sphinx = ">=5.3,<8.0"
sphinx-immaterial = ">=0.11,<0.13"
[tool.poetry.group.dev.dependencies]
tbump = "^6.11.0"
pre-commit = "*"
pytest = "^8.2.2"
pytest-flake8 = "=1.3.0"
pytest-cov = "^6.1.1"
tox = "*"
mypy = "^1.10"
isort = "^6.0.1"
black = "^25.1.0"
flynt = "^1.0"
deptry = "^0.23.0"
flake8 = "^5.0.4"
pyflakes = "^2.5.0"
[tool.pytest.ini_options]
addopts = """
--capture=no
--verbose
--showlocals
--junitxml=reports/junit.xml
--cov=openapi_spec_validator
--cov-report=term-missing
--cov-report=xml
"""
markers = [
"network: marks tests which do need network-enabled environment",
]
[tool.black]
line-length = 79
[tool.isort]
profile = "black"
line_length = 79
force_single_line = true
[tool.tbump]
[tool.tbump.git]
message_template = "Version {new_version}"
tag_template = "{new_version}"
[tool.tbump.version]
current = "0.7.2"
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
(?P<prerelease>[a-z]+\d+)?
'''
[[tool.tbump.file]]
src = "docs/index.rst"
[[tool.tbump.file]]
src = "docs/hook.rst"
[[tool.tbump.file]]
src = "openapi_spec_validator/__init__.py"
[[tool.tbump.file]]
src = "Dockerfile"
[[tool.tbump.file]]
src = "README.rst"
[[tool.tbump.file]]
src = "pyproject.toml"
search = 'version = "{current_version}"'