Skip to content

Commit 8b23783

Browse files
pre-commit-ci[bot]oleksandr-ncReview
authored
[pre-commit.ci] pre-commit autoupdate (#410)
<!--pre-commit.ci start--> updates: - [github.com/PyCQA/isort: 6.0.1 → 8.0.1](PyCQA/isort@6.0.1...8.0.1) - https://github.com/psf/blackhttps://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 25.1.0 → 26.3.1](psf/black-pre-commit-mirror@25.1.0...26.3.1) - [github.com/tox-dev/pyproject-fmt: v2.6.0 → v2.20.0](tox-dev/pyproject-fmt@v2.6.0...v2.20.0) - [github.com/astral-sh/ruff-pre-commit: v0.12.10 → v0.15.7](astral-sh/ruff-pre-commit@v0.12.10...v0.15.7) <!--pre-commit.ci end--> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Oleksandr Piskun <oleksandr2088@icloud.com> Co-authored-by: Review <review@local>
1 parent a0f8a31 commit 8b23783

4 files changed

Lines changed: 31 additions & 37 deletions

File tree

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repos:
1212
- id: mixed-line-ending
1313

1414
- repo: https://github.com/PyCQA/isort
15-
rev: 6.0.1
15+
rev: 8.0.1
1616
hooks:
1717
- id: isort
1818
files: >-
@@ -24,8 +24,8 @@ repos:
2424
tests_unit/
2525
)
2626
27-
- repo: https://github.com/psf/black
28-
rev: 25.1.0
27+
- repo: https://github.com/psf/black-pre-commit-mirror
28+
rev: 26.3.1
2929
hooks:
3030
- id: black
3131
files: >-
@@ -38,12 +38,12 @@ repos:
3838
)
3939
4040
- repo: https://github.com/tox-dev/pyproject-fmt
41-
rev: v2.6.0
41+
rev: v2.20.0
4242
hooks:
4343
- id: pyproject-fmt
4444

4545
- repo: https://github.com/astral-sh/ruff-pre-commit
46-
rev: v0.12.10
46+
rev: v0.15.7
4747
hooks:
4848
- id: ruff
4949

benchmarks/aa_overhead_common.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ def measure_overhead(measure, title: str):
2020
for k, v in NC_CFGS.items():
2121
nc = init_nc(k, v)
2222
if nc:
23-
result_nc, time_nc = measure(nc)
23+
_result_nc, time_nc = measure(nc)
2424
penguin_means["Password"].append(time_nc)
2525
else:
2626
penguin_means["Password"].append(0)
2727

2828
nc_ap = init_nc_by_app_pass(k, v)
2929
if nc_ap:
30-
result_nc_ap, time_nc_ap = measure(nc_ap)
30+
_result_nc_ap, time_nc_ap = measure(nc_ap)
3131
penguin_means["AppPassword"].append(time_nc_ap)
3232
else:
3333
penguin_means["AppPassword"].append(0)
3434

3535
nc_ae = init_nc_app(k, v)
36-
result_nc_ae, time_nc_ae = measure(nc_ae)
36+
_result_nc_ae, time_nc_ae = measure(nc_ae)
3737
penguin_means["AppAPI"].append(time_nc_ae)
3838

3939
# Uncomment only for functions that return predictable values.
@@ -48,7 +48,7 @@ def measure_overhead(measure, title: str):
4848
width = 0.25 # the width of the bars
4949
multiplier = 0
5050

51-
fig, ax = plt.subplots(layout="constrained")
51+
_fig, ax = plt.subplots(layout="constrained")
5252

5353
for attribute, measurement in penguin_means.items():
5454
offset = width * multiplier

examples/as_app/to_gif/lib/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def convert_video_to_gif(input_file: FsNode, nc: NextcloudApp):
4141
skip = 0
4242
while True:
4343
skip += 1
44-
ret, frame = cap.read()
44+
_ret, frame = cap.read()
4545
if frame is None:
4646
break
4747
if skip == 2:

pyproject.toml

Lines changed: 21 additions & 27 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",
@@ -79,16 +80,14 @@ optional-dependencies.dev-min = [
7980
urls.Changelog = "https://github.com/cloud-py-api/nc_py_api/blob/main/CHANGELOG.md"
8081
urls.Source = "https://github.com/cloud-py-api/nc_py_api"
8182

82-
[tool.hatch.version]
83-
path = "nc_py_api/_version.py"
84-
85-
[tool.hatch.build.targets.sdist]
86-
include = [
83+
[tool.hatch]
84+
build.targets.sdist.include = [
8785
"/nc_py_api",
8886
"/CHANGELOG.md",
8987
"/README.md",
9088
]
91-
exclude = [ ]
89+
build.targets.sdist.exclude = []
90+
version.path = "nc_py_api/_version.py"
9291

9392
[tool.black]
9493
line-length = 120
@@ -126,7 +125,6 @@ lint.extend-ignore = [
126125
"RUF100",
127126
"S108",
128127
]
129-
130128
lint.per-file-ignores."nc_py_api/__init__.py" = [
131129
"F401",
132130
]
@@ -201,41 +199,37 @@ messages_control.disable = [
201199
"too-many-positional-arguments",
202200
]
203201

204-
[tool.pytest.ini_options]
205-
minversion = "6.0"
206-
testpaths = [
202+
[tool.pytest]
203+
ini_options.minversion = "6.0"
204+
ini_options.testpaths = [
207205
"tests",
208206
"tests_unit",
209207
]
210-
filterwarnings = [
208+
ini_options.filterwarnings = [
211209
"ignore::DeprecationWarning",
212210
]
213-
log_cli = true
214-
addopts = "-rs --color=yes"
215-
markers = [
211+
ini_options.log_cli = true
212+
ini_options.addopts = "-rs --color=yes"
213+
ini_options.markers = [
216214
"require_nc: marks a test that requires a minimum version of Nextcloud.",
217215
]
218-
asyncio_mode = "auto"
216+
ini_options.asyncio_mode = "auto"
219217

220-
[tool.coverage.run]
221-
cover_pylib = true
222-
include = [
218+
[tool.coverage]
219+
run.cover_pylib = true
220+
run.include = [
223221
"*/nc_py_api/*",
224222
]
225-
omit = [
223+
run.omit = [
226224
"*/tests/*",
227225
]
228-
229-
[tool.coverage.paths]
230-
source = [
226+
paths.source = [
231227
"nc_py_api/",
232228
"*/site-packages/nc_py_api/",
233229
]
234-
235-
[tool.coverage.report]
236-
exclude_lines = [
230+
report.exclude_lines = [
231+
"DEPRECATED",
232+
"DeprecationWarning",
237233
"pragma: no cover",
238234
"raise NotImplementedError",
239-
"DeprecationWarning",
240-
"DEPRECATED",
241235
]

0 commit comments

Comments
 (0)