Skip to content

Commit 2557767

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 8fc1927 commit 2557767

File tree

1 file changed

+23
-29
lines changed

1 file changed

+23
-29
lines changed

pyproject.toml

Lines changed: 23 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ classifiers = [
3232
"Programming Language :: Python :: 3.11",
3333
"Programming Language :: Python :: 3.12",
3434
"Programming Language :: Python :: 3.13",
35+
"Programming Language :: Python :: 3.14",
3536
"Programming Language :: Python :: Implementation :: CPython",
3637
"Programming Language :: Python :: Implementation :: PyPy",
3738
"Topic :: Internet :: WWW/HTTP",
@@ -88,18 +89,16 @@ urls.Changelog = "https://github.com/cloud-py-api/nc_py_api/blob/main/CHANGELOG.
8889
urls.Documentation = "https://cloud-py-api.github.io/nc_py_api/"
8990
urls.Source = "https://github.com/cloud-py-api/nc_py_api"
9091

91-
[tool.hatch.version]
92-
path = "nc_py_api/_version.py"
93-
94-
[tool.hatch.build.targets.sdist]
95-
include = [
92+
[tool.hatch]
93+
build.targets.sdist.include = [
9694
"/nc_py_api",
9795
"/CHANGELOG.md",
9896
"/README.md",
9997
]
100-
exclude = [
98+
build.targets.sdist.exclude = [
10199
"Makefile",
102100
]
101+
version.path = "nc_py_api/_version.py"
103102

104103
[tool.black]
105104
line-length = 120
@@ -137,7 +136,6 @@ lint.extend-ignore = [
137136
"RUF100",
138137
"S108",
139138
]
140-
141139
lint.per-file-ignores."nc_py_api/__init__.py" = [
142140
"F401",
143141
]
@@ -209,40 +207,36 @@ messages_control.disable = [
209207
"too-many-positional-arguments",
210208
]
211209

212-
[tool.pytest.ini_options]
213-
minversion = "6.0"
214-
testpaths = [
210+
[tool.pytest]
211+
ini_options.minversion = "6.0"
212+
ini_options.testpaths = [
215213
"tests",
216214
]
217-
filterwarnings = [
215+
ini_options.filterwarnings = [
218216
"ignore::DeprecationWarning",
219217
]
220-
log_cli = true
221-
addopts = "-rs --color=yes"
222-
markers = [
218+
ini_options.log_cli = true
219+
ini_options.addopts = "-rs --color=yes"
220+
ini_options.markers = [
223221
"require_nc: marks a test that requires a minimum version of Nextcloud.",
224222
]
225-
asyncio_mode = "auto"
226-
227-
[tool.coverage.run]
228-
cover_pylib = true
229-
include = [
230-
"*/nc_py_api/*",
231-
]
232-
omit = [
233-
"*/tests/*",
234-
]
223+
ini_options.asyncio_mode = "auto"
235224

236-
[tool.coverage.paths]
237-
source = [
225+
[tool.coverage]
226+
paths.source = [
238227
"nc_py_api/",
239228
"*/site-packages/nc_py_api/",
240229
]
241-
242-
[tool.coverage.report]
243-
exclude_lines = [
230+
report.exclude_lines = [
244231
"pragma: no cover",
245232
"raise NotImplementedError",
246233
"DeprecationWarning",
247234
"DEPRECATED",
248235
]
236+
run.cover_pylib = true
237+
run.include = [
238+
"*/nc_py_api/*",
239+
]
240+
run.omit = [
241+
"*/tests/*",
242+
]

0 commit comments

Comments
 (0)