-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
202 lines (187 loc) · 4.55 KB
/
pyproject.toml
File metadata and controls
202 lines (187 loc) · 4.55 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
[build-system]
requires = ["setuptools>=77.0.3"]
build-backend = "setuptools.build_meta"
[project]
name = "jsonpatchx"
version = "0.1.0"
description = "JSON Patch for modern PATCH APIs."
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.12"
authors = [
{ name = "Angela Liss", email = "chamsester@gmail.com" },
]
keywords = [
"JSON",
"JSON Patch",
"JSONPatch",
"JSON Pointer",
"JSONPointer",
"JSON Path",
"JSONPath",
"RFC 6902",
"RFC 6901",
"RFC 9535",
"fastapi",
"pydantic",
"openapi",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: FastAPI",
"Framework :: Pydantic",
"Framework :: Pydantic :: 2",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: File Formats :: JSON",
"Topic :: File Formats :: JSON :: JSON Schema",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
"jsonpointer>=3.0.0",
"pydantic>=2.12.5",
"python-jsonpath[strict]>=2.0.2; python_version <= '3.13'",
"python-jsonpath>=2.0.2; python_version >= '3.14'",
"typing-extensions>=4.15.0",
]
[project.urls]
Documentation = "https://angela-tarantula.github.io/jsonpatchx/"
Source = "https://github.com/angela-tarantula/jsonpatchx"
Issues = "https://github.com/angela-tarantula/jsonpatchx/issues"
Changelog = "https://github.com/angela-tarantula/jsonpatchx/blob/main/CHANGELOG.md"
Tests = "https://github.com/angela-tarantula/jsonpatchx/actions/workflows/python-tests.yml"
"Test Coverage" = "https://codecov.io/github/angela-tarantula/jsonpatchx"
[project.optional-dependencies]
fastapi = [
"fastapi>=0.128.0",
]
[dependency-groups]
dev = [
{ include-group = "docs" },
{ include-group = "tests" },
{ include-group = "lint" },
{ include-group = "typing" },
]
ci = [
{ include-group = "tests" },
{ include-group = "lint" },
{ include-group = "typing" },
]
snapshots = [
{ include-group = "tests" },
]
lint = [
"ruff>=0.15.7",
]
tests = [
"fastapi>=0.135.1",
"httpx>=0.28.1",
"pytest>=9.0.2",
"pytest-cov>=7.1.0",
"uvicorn>=0.42.0",
]
typing = [
"mypy>=1.19.1",
]
fuzz = [
"atheris>=3.0.0; python_version >= '3.11' and python_version < '3.14'",
"pyinstaller>=6.10.0",
]
docs = [
"mkdocstrings[python]>=1.0.3",
"zensical>=0.0.30",
]
[tool.setuptools.packages.find]
include = ["jsonpatchx*"]
[tool.mypy]
plugins = ["pydantic.mypy"]
python_version = "3.12"
strict = true
enable_incomplete_feature = ["TypeForm"]
exclude = "temp.py|tests"
exclude_gitignore = true
warn_unused_configs = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_return_any = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
no_implicit_optional = true
check_untyped_defs = true
enable_error_code = [
"type-arg",
"no-untyped-def",
"redundant-cast",
"redundant-self",
"comparison-overlap",
"no-untyped-call",
"no-any-return",
"no-any-unimported",
"unreachable",
"deprecated",
"redundant-expr",
"possibly-undefined",
"truthy-bool",
"truthy-iterable",
"ignore-without-code",
"unused-awaitable",
"unused-ignore",
"explicit-override",
"mutable-override",
"unimported-reveal",
"explicit-any",
"exhaustive-match",
"untyped-decorator",
]
[tool.pyright]
enableExperimentalFeatures = true
[tool.pytest.ini_options]
minversion = "9.0"
pythonpath = ["."]
testpaths = ["tests"]
addopts = [
"--strict-config",
"--strict-markers",
"-ra",
]
xfail_strict = true
filterwarnings = [
"error",
]
markers = [
"integration: integration tests across modules/APIs",
"contract: API/schema contract snapshot tests",
]
[tool.coverage.run]
branch = true
parallel = true
source = ["jsonpatchx"]
omit = [
"*/__init__.py",
"*temp*.py",
]
[tool.coverage.report]
fail_under = 90
show_missing = true
skip_covered = true
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"case _ as unreachable:",
"^\\s*@(?:typing\\.)?overload\\b",
]
[tool.ruff.lint.per-file-ignores]
"tests/integration/fastapi/runtime/conftest.py" = ["F401"]