From a658d149f9d7285f26053eadfe8a2b0c75716f03 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 16:23:24 +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/python-jsonschema/check-jsonschema.git: 0.36.0 → 0.36.1](https://github.com/python-jsonschema/check-jsonschema.git/compare/0.36.0...0.36.1) - [github.com/rhysd/actionlint: v1.7.9 → v1.7.10](https://github.com/rhysd/actionlint/compare/v1.7.9...v1.7.10) - [github.com/kynan/nbstripout: 0.8.2 → 0.9.0](https://github.com/kynan/nbstripout/compare/0.8.2...0.9.0) - [github.com/abravalheri/validate-pyproject: v0.24.1 → v0.25](https://github.com/abravalheri/validate-pyproject/compare/v0.24.1...v0.25) - [github.com/astral-sh/ruff-pre-commit: v0.14.10 → v0.15.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.10...v0.15.0) --- .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 b1c8b745..44800a30 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,7 +43,7 @@ repos: exclude: ^\.bumpversion\.cfg$ - repo: https://github.com/python-jsonschema/check-jsonschema.git - rev: 0.36.0 + rev: 0.36.1 hooks: - id: check-github-actions - id: check-github-workflows @@ -55,12 +55,12 @@ repos: - id: check-readthedocs - repo: https://github.com/rhysd/actionlint - rev: v1.7.9 + rev: v1.7.10 hooks: - id: actionlint - repo: https://github.com/kynan/nbstripout - rev: 0.8.2 + rev: 0.9.0 hooks: - id: nbstripout @@ -92,7 +92,7 @@ repos: - mdformat-myst - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.24.1 + rev: v0.25 hooks: - id: validate-pyproject @@ -104,7 +104,7 @@ repos: additional_dependencies: [setuptools-scm] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.10 + rev: v0.15.0 hooks: - id: ruff-format - id: ruff From d79824c6b606cb90c487f028166fe667abfda76e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 16:23:42 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/ridgeplot/_color/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ridgeplot/_color/utils.py b/src/ridgeplot/_color/utils.py index d20bcdb1..a4946e4a 100644 --- a/src/ridgeplot/_color/utils.py +++ b/src/ridgeplot/_color/utils.py @@ -50,7 +50,7 @@ def to_rgb(color: Color) -> str: def unpack_rgb(rgb: str) -> tuple[float, float, float, float] | tuple[float, float, float]: - prefix = rgb.split("(")[0] + "(" + prefix = rgb.split("(", maxsplit=1)[0] + "(" values_str = map(str.strip, rgb.removeprefix(prefix).removesuffix(")").split(",")) values_num = tuple(int(v) if v.isdecimal() else float(v) for v in values_str) return cast("tuple[float, float, float, float] | tuple[float, float, float]", values_num)