From f2214629975372974d0fd090c644cbdaf3bafbbe Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2026 16:23:19 +0000 Subject: [PATCH 1/4] [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.37.1](https://github.com/python-jsonschema/check-jsonschema.git/compare/0.36.0...0.37.1) - [github.com/rhysd/actionlint: v1.7.9 → v1.7.12](https://github.com/rhysd/actionlint/compare/v1.7.9...v1.7.12) - [github.com/kynan/nbstripout: 0.8.2 → 0.9.1](https://github.com/kynan/nbstripout/compare/0.8.2...0.9.1) - [github.com/codespell-project/codespell: v2.4.1 → v2.4.2](https://github.com/codespell-project/codespell/compare/v2.4.1...v2.4.2) - [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.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.10...v0.15.9) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b1c8b745..f60fd627 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.37.1 hooks: - id: check-github-actions - id: check-github-workflows @@ -55,17 +55,17 @@ repos: - id: check-readthedocs - repo: https://github.com/rhysd/actionlint - rev: v1.7.9 + rev: v1.7.12 hooks: - id: actionlint - repo: https://github.com/kynan/nbstripout - rev: 0.8.2 + rev: 0.9.1 hooks: - id: nbstripout - repo: https://github.com/codespell-project/codespell - rev: v2.4.1 + rev: v2.4.2 hooks: - id: codespell args: [ "-L", "probly", "-L", "mis" ] @@ -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.9 hooks: - id: ruff-format - id: ruff From 92f1ea443652a276bbe501f25b2a5ddf902b14d5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2026 16:23:55 +0000 Subject: [PATCH 2/4] [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) From 1aa840ae7e5c2f80b422ded5c474aa782b75c6b9 Mon Sep 17 00:00:00 2001 From: Tomas Pereira de Vasconcelos Date: Tue, 7 Apr 2026 11:14:57 +1000 Subject: [PATCH 3/4] Cleanup tests/cicd_utils/test_scripts/test_scripts_are_executable.py Signed-off-by: Tomas Pereira de Vasconcelos --- .../test_scripts/test_scripts_are_executable.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/cicd_utils/test_scripts/test_scripts_are_executable.py b/tests/cicd_utils/test_scripts/test_scripts_are_executable.py index 1321bd95..c92169b3 100644 --- a/tests/cicd_utils/test_scripts/test_scripts_are_executable.py +++ b/tests/cicd_utils/test_scripts/test_scripts_are_executable.py @@ -6,24 +6,24 @@ import pytest PATH_CICD_SCRIPTS = Path(__file__).parents[3] / "cicd_utils/cicd/scripts" -CICD_SCRIPTS = [ +CICD_PY_SCRIPTS = [ p for p in PATH_CICD_SCRIPTS.iterdir() - if p.is_file() and p.suffix in {".py"} and p.name != "__init__.py" + if p.is_file() and p.suffix == ".py" and p.name != "__init__.py" ] -def test_cicd_scripts_not_empty() -> None: - assert len(CICD_SCRIPTS) > 0 +def test_cicd_py_scripts_not_empty() -> None: + assert len(CICD_PY_SCRIPTS) > 0 -@pytest.mark.parametrize("script_path", CICD_SCRIPTS, ids=[p.name for p in CICD_SCRIPTS]) -def test_scripts_are_executable(script_path: Path) -> None: +@pytest.mark.parametrize("script_path", CICD_PY_SCRIPTS, ids=[p.name for p in CICD_PY_SCRIPTS]) +def test_py_scripts_are_executable(script_path: Path) -> None: assert os.access(script_path, os.X_OK) -@pytest.mark.parametrize("script_path", CICD_SCRIPTS, ids=[p.name for p in CICD_SCRIPTS]) -def test_scripts_have_py_shebang(script_path: Path) -> None: +@pytest.mark.parametrize("script_path", CICD_PY_SCRIPTS, ids=[p.name for p in CICD_PY_SCRIPTS]) +def test_py_scripts_have_py_shebang(script_path: Path) -> None: with script_path.open("r") as f: first_line = f.readline() assert first_line.startswith("#!/usr/bin/env python") From e9665f65a7d7fcc5fdcac0d086bc28df6f9bd0ac Mon Sep 17 00:00:00 2001 From: Tomas Pereira de Vasconcelos Date: Tue, 7 Apr 2026 11:15:50 +1000 Subject: [PATCH 4/4] Update changelog Signed-off-by: Tomas Pereira de Vasconcelos --- docs/reference/changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/changelog.md b/docs/reference/changelog.md index 32a23ef6..6920dc01 100644 --- a/docs/reference/changelog.md +++ b/docs/reference/changelog.md @@ -33,7 +33,7 @@ Unreleased changes - Bump actions/upload-artifact from 5 to 6 ({gh-pr}`360`) - Bump sigstore/gh-action-sigstore-python from 3.0.1 to 3.1.0 ({gh-pr}`352`) - Bump sigstore/gh-action-sigstore-python from 3.1.0 to 3.2.0 ({gh-pr}`359`) -- pre-commit autoupdate ({gh-pr}`350`, {gh-pr}`355`, {gh-pr}`358`, {gh-pr}`362`) +- pre-commit autoupdate ({gh-pr}`350`, {gh-pr}`355`, {gh-pr}`358`, {gh-pr}`362`, and {gh-pr}`366`) ---