Skip to content

Commit 8f62447

Browse files
Merge branch 'main' into dependabot/github_actions/actions/upload-artifact-7
2 parents 6b3eab4 + 5cd512a commit 8f62447

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ repos:
4343
exclude: ^\.bumpversion\.cfg$
4444

4545
- repo: https://github.com/python-jsonschema/check-jsonschema.git
46-
rev: 0.36.0
46+
rev: 0.37.1
4747
hooks:
4848
- id: check-github-actions
4949
- id: check-github-workflows
@@ -55,17 +55,17 @@ repos:
5555
- id: check-readthedocs
5656

5757
- repo: https://github.com/rhysd/actionlint
58-
rev: v1.7.9
58+
rev: v1.7.12
5959
hooks:
6060
- id: actionlint
6161

6262
- repo: https://github.com/kynan/nbstripout
63-
rev: 0.8.2
63+
rev: 0.9.1
6464
hooks:
6565
- id: nbstripout
6666

6767
- repo: https://github.com/codespell-project/codespell
68-
rev: v2.4.1
68+
rev: v2.4.2
6969
hooks:
7070
- id: codespell
7171
args: [ "-L", "probly", "-L", "mis" ]
@@ -92,7 +92,7 @@ repos:
9292
- mdformat-myst
9393

9494
- repo: https://github.com/abravalheri/validate-pyproject
95-
rev: v0.24.1
95+
rev: v0.25
9696
hooks:
9797
- id: validate-pyproject
9898

@@ -104,7 +104,7 @@ repos:
104104
additional_dependencies: [setuptools-scm]
105105

106106
- repo: https://github.com/astral-sh/ruff-pre-commit
107-
rev: v0.14.10
107+
rev: v0.15.9
108108
hooks:
109109
- id: ruff-format
110110
- id: ruff

docs/reference/changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Unreleased changes
3333
- Bump actions/upload-artifact from 5 to 6 ({gh-pr}`360`)
3434
- Bump sigstore/gh-action-sigstore-python from 3.0.1 to 3.1.0 ({gh-pr}`352`)
3535
- Bump sigstore/gh-action-sigstore-python from 3.1.0 to 3.2.0 ({gh-pr}`359`)
36-
- pre-commit autoupdate ({gh-pr}`350`, {gh-pr}`355`, {gh-pr}`358`, {gh-pr}`362`)
36+
- pre-commit autoupdate ({gh-pr}`350`, {gh-pr}`355`, {gh-pr}`358`, {gh-pr}`362`, and {gh-pr}`366`)
3737

3838
---
3939

src/ridgeplot/_color/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def to_rgb(color: Color) -> str:
5050

5151

5252
def unpack_rgb(rgb: str) -> tuple[float, float, float, float] | tuple[float, float, float]:
53-
prefix = rgb.split("(")[0] + "("
53+
prefix = rgb.split("(", maxsplit=1)[0] + "("
5454
values_str = map(str.strip, rgb.removeprefix(prefix).removesuffix(")").split(","))
5555
values_num = tuple(int(v) if v.isdecimal() else float(v) for v in values_str)
5656
return cast("tuple[float, float, float, float] | tuple[float, float, float]", values_num)

tests/cicd_utils/test_scripts/test_scripts_are_executable.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,24 @@
66
import pytest
77

88
PATH_CICD_SCRIPTS = Path(__file__).parents[3] / "cicd_utils/cicd/scripts"
9-
CICD_SCRIPTS = [
9+
CICD_PY_SCRIPTS = [
1010
p
1111
for p in PATH_CICD_SCRIPTS.iterdir()
12-
if p.is_file() and p.suffix in {".py"} and p.name != "__init__.py"
12+
if p.is_file() and p.suffix == ".py" and p.name != "__init__.py"
1313
]
1414

1515

16-
def test_cicd_scripts_not_empty() -> None:
17-
assert len(CICD_SCRIPTS) > 0
16+
def test_cicd_py_scripts_not_empty() -> None:
17+
assert len(CICD_PY_SCRIPTS) > 0
1818

1919

20-
@pytest.mark.parametrize("script_path", CICD_SCRIPTS, ids=[p.name for p in CICD_SCRIPTS])
21-
def test_scripts_are_executable(script_path: Path) -> None:
20+
@pytest.mark.parametrize("script_path", CICD_PY_SCRIPTS, ids=[p.name for p in CICD_PY_SCRIPTS])
21+
def test_py_scripts_are_executable(script_path: Path) -> None:
2222
assert os.access(script_path, os.X_OK)
2323

2424

25-
@pytest.mark.parametrize("script_path", CICD_SCRIPTS, ids=[p.name for p in CICD_SCRIPTS])
26-
def test_scripts_have_py_shebang(script_path: Path) -> None:
25+
@pytest.mark.parametrize("script_path", CICD_PY_SCRIPTS, ids=[p.name for p in CICD_PY_SCRIPTS])
26+
def test_py_scripts_have_py_shebang(script_path: Path) -> None:
2727
with script_path.open("r") as f:
2828
first_line = f.readline()
2929
assert first_line.startswith("#!/usr/bin/env python")

0 commit comments

Comments
 (0)