Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/ridgeplot/_color/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading