From 3fae7bce8e1a7bb2c1ec1779ed31ee9c4de78e35 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 17:44:26 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/PyCQA/isort: 6.0.1 → 8.0.0](https://github.com/PyCQA/isort/compare/6.0.1...8.0.0) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 25.1.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/25.1.0...26.1.0) - [github.com/tox-dev/pyproject-fmt: v2.6.0 → v2.16.2](https://github.com/tox-dev/pyproject-fmt/compare/v2.6.0...v2.16.2) - [github.com/astral-sh/ruff-pre-commit: v0.12.10 → v0.15.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.10...v0.15.2) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 79e8284d..022157ee 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: - id: mixed-line-ending - repo: https://github.com/PyCQA/isort - rev: 6.0.1 + rev: 8.0.0 hooks: - id: isort files: >- @@ -24,8 +24,8 @@ repos: tests_unit/ ) -- repo: https://github.com/psf/black - rev: 25.1.0 +- repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.1.0 hooks: - id: black files: >- @@ -38,12 +38,12 @@ repos: ) - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.6.0 + rev: v2.16.2 hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.10 + rev: v0.15.2 hooks: - id: ruff From 308290ab7d38d4f37f1724b5d05d74607a57c566 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 17:44:37 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 48 +++++++++++++++++++++--------------------------- 1 file changed, 21 insertions(+), 27 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d6be19df..12f4e15b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,6 +32,7 @@ classifiers = [ "Programming Language :: Python :: 3.11", "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 :: Internet :: WWW/HTTP", @@ -79,16 +80,14 @@ optional-dependencies.dev-min = [ urls.Changelog = "https://github.com/cloud-py-api/nc_py_api/blob/main/CHANGELOG.md" urls.Source = "https://github.com/cloud-py-api/nc_py_api" -[tool.hatch.version] -path = "nc_py_api/_version.py" - -[tool.hatch.build.targets.sdist] -include = [ +[tool.hatch] +build.targets.sdist.include = [ "/nc_py_api", "/CHANGELOG.md", "/README.md", ] -exclude = [ ] +build.targets.sdist.exclude = [] +version.path = "nc_py_api/_version.py" [tool.black] line-length = 120 @@ -126,7 +125,6 @@ lint.extend-ignore = [ "RUF100", "S108", ] - lint.per-file-ignores."nc_py_api/__init__.py" = [ "F401", ] @@ -201,41 +199,37 @@ messages_control.disable = [ "too-many-positional-arguments", ] -[tool.pytest.ini_options] -minversion = "6.0" -testpaths = [ +[tool.pytest] +ini_options.minversion = "6.0" +ini_options.testpaths = [ "tests", "tests_unit", ] -filterwarnings = [ +ini_options.filterwarnings = [ "ignore::DeprecationWarning", ] -log_cli = true -addopts = "-rs --color=yes" -markers = [ +ini_options.log_cli = true +ini_options.addopts = "-rs --color=yes" +ini_options.markers = [ "require_nc: marks a test that requires a minimum version of Nextcloud.", ] -asyncio_mode = "auto" +ini_options.asyncio_mode = "auto" -[tool.coverage.run] -cover_pylib = true -include = [ +[tool.coverage] +run.cover_pylib = true +run.include = [ "*/nc_py_api/*", ] -omit = [ +run.omit = [ "*/tests/*", ] - -[tool.coverage.paths] -source = [ +paths.source = [ "nc_py_api/", "*/site-packages/nc_py_api/", ] - -[tool.coverage.report] -exclude_lines = [ +report.exclude_lines = [ + "DEPRECATED", + "DeprecationWarning", "pragma: no cover", "raise NotImplementedError", - "DeprecationWarning", - "DEPRECATED", ]