From 788a962699966e7b3f840b24256650decb92682b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 17:51:25 +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/tox-dev/pyproject-fmt: v2.21.2 → v2.23.0](https://github.com/tox-dev/pyproject-fmt/compare/v2.21.2...v2.23.0) - [github.com/astral-sh/ruff-pre-commit: v0.15.14 → v0.15.15](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.14...v0.15.15) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9c7f186e..6b52f5b6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,12 +38,12 @@ repos: ) - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.21.2 + rev: v2.23.0 hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.14 + rev: v0.15.15 hooks: - id: ruff From 64321a960974a3e2bd08c73b04f770788038efb0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 17:51: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 | 54 +++++++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index dc048665..53b5f95a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -81,13 +81,13 @@ urls.Changelog = "https://github.com/cloud-py-api/nc_py_api/blob/main/CHANGELOG. urls.Source = "https://github.com/cloud-py-api/nc_py_api" [tool.hatch] +version.path = "nc_py_api/_version.py" build.targets.sdist.include = [ - "/nc_py_api", "/CHANGELOG.md", + "/nc_py_api", "/README.md", ] build.targets.sdist.exclude = [] -version.path = "nc_py_api/_version.py" [tool.black] line-length = 120 @@ -159,45 +159,45 @@ lint.mccabe.max-complexity = 16 profile = "black" [tool.pylint] -master.py-version = "3.10" master.extension-pkg-allow-list = [ "pydantic", ] -design.max-locals = 20 -design.max-branches = 16 -design.max-returns = 8 -design.max-args = 10 +master.py-version = "3.10" +messages_control.disable = [ + "line-too-long", + "missing-class-docstring", + "missing-function-docstring", + "too-few-public-methods", + "too-many-instance-attributes", + "too-many-positional-arguments", + "too-many-public-methods", +] +reports.output-format = "colorized" basic.good-names = [ + "_", "a", "b", "c", "d", "e", + "ex", "f", + "fp", "i", + "im", "j", "k", - "r", - "v", - "ex", - "_", - "fp", - "im", "nc", + "r", "ui", + "v", ] -reports.output-format = "colorized" +design.max-args = 10 +design.max-branches = 16 +design.max-locals = 20 +design.max-returns = 8 similarities.ignore-imports = "yes" similarities.min-similarity-lines = 10 -messages_control.disable = [ - "missing-class-docstring", - "missing-function-docstring", - "line-too-long", - "too-few-public-methods", - "too-many-public-methods", - "too-many-instance-attributes", - "too-many-positional-arguments", -] [tool.pytest] ini_options.minversion = "6.0" @@ -205,14 +205,14 @@ ini_options.testpaths = [ "tests", "tests_unit", ] -ini_options.filterwarnings = [ - "ignore::DeprecationWarning", -] -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.", ] +ini_options.filterwarnings = [ + "ignore::DeprecationWarning", +] +ini_options.log_cli = true ini_options.asyncio_mode = "auto" [tool.coverage]