Skip to content

Commit 048b7fc

Browse files
ci(pre-commit.ci): autoupdate (#70)
* ci(pre-commit.ci): autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.0 → v0.6.3](astral-sh/ruff-pre-commit@v0.5.0...v0.6.3) - [github.com/pre-commit/mirrors-mypy: v1.10.1 → v1.11.2](pre-commit/mirrors-mypy@v1.10.1...v1.11.2) * Update pre-commit hooks to latest versions * update --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Talley Lambert <[email protected]>
1 parent 3f968c3 commit 048b7fc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ exclude: ^LICENSE
77

88
repos:
99
- repo: https://github.com/pre-commit/pre-commit-hooks
10-
rev: v4.6.0
10+
rev: v5.0.0
1111
hooks:
1212
- id: check-docstring-first
1313
- id: end-of-file-fixer
@@ -16,7 +16,7 @@ repos:
1616
args: [--autofix]
1717

1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: v0.5.0
19+
rev: v0.7.1
2020
hooks:
2121
- id: ruff
2222
args: [--fix, --unsafe-fixes]
@@ -30,7 +30,7 @@ repos:
3030
# - id: validate-pyproject
3131

3232
- repo: https://github.com/pre-commit/mirrors-mypy
33-
rev: v1.10.1
33+
rev: v1.13.0
3434
hooks:
3535
- id: mypy
3636
files: "^src/"

src/cmap/_colormap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,9 +1345,9 @@ def _mpl_segmentdata_to_stops(
13451345
A list of (position, [r, g, b]) tuples.
13461346
"""
13471347
if all(callable(v) for v in data.values()):
1348-
funcs = (data["red"], data["green"], data["blue"])
1348+
funcs: tuple = (data["red"], data["green"], data["blue"])
13491349
if "alpha" in data:
1350-
return partial(_map_rgb, (*funcs, data["alpha"]))
1350+
funcs = (*funcs, data["alpha"])
13511351
return partial(_map_rgb, funcs)
13521352
if any(callable(v) for v in data.values()):
13531353
raise ValueError(

0 commit comments

Comments
 (0)