Skip to content

Commit 5e1fb5a

Browse files
ci(pre-commit.ci): autoupdate (#97)
* ci(pre-commit.ci): autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.9.9 → v0.11.4](astral-sh/ruff-pre-commit@v0.9.9...v0.11.4) - [github.com/abravalheri/validate-pyproject: v0.23 → v0.24.1](abravalheri/validate-pyproject@v0.23...v0.24.1) * style(pre-commit.ci): auto fixes [...] --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent d903b9f commit 5e1fb5a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
args: [--autofix]
1616

1717
- repo: https://github.com/astral-sh/ruff-pre-commit
18-
rev: v0.9.9
18+
rev: v0.11.4
1919
hooks:
2020
- id: ruff
2121
args: [--fix, --unsafe-fixes]
@@ -24,7 +24,7 @@ repos:
2424
# commented out until PEP 639 is supported\
2525
# https://github.com/abravalheri/validate-pyproject/issues/70
2626
- repo: https://github.com/abravalheri/validate-pyproject
27-
rev: v0.23
27+
rev: v0.24.1
2828
hooks:
2929
- id: validate-pyproject
3030

src/cmap/_catalog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def _sorter(x: Path) -> tuple[int, Path]:
246246
self._original_names[name] = normed_name
247247
self._data[normed_name] = data
248248
if alias := data.get("alias"):
249-
self._aliases[normed_name] = cast(str, alias)
249+
self._aliases[normed_name] = cast("str", alias)
250250
self._rev_aliases.setdefault(self._norm_name(alias), []).append(
251251
normed_name
252252
)

src/cmap/_colormap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@ def __get_validators__(cls) -> Iterator[Callable]:
11821182
yield cls.parse # pydantic validator
11831183

11841184
def _json_encode(self) -> list:
1185-
return cast(list, self._stops.tolist())
1185+
return cast("list", self._stops.tolist())
11861186

11871187

11881188
def _fill_stops(

src/cmap/_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def circlesineramp(
426426
im[rad < 0] = np.nan
427427
alpha[rad < 0] = 0
428428

429-
return cast(np.ndarray, im * alpha)
429+
return cast("np.ndarray", im * alpha)
430430

431431

432432
class ReportDict(TypedDict):

0 commit comments

Comments
 (0)