Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:
args: [--autofix]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.9
rev: v0.11.4
hooks:
- id: ruff
args: [--fix, --unsafe-fixes]
Expand All @@ -24,7 +24,7 @@ repos:
# commented out until PEP 639 is supported\
# https://github.com/abravalheri/validate-pyproject/issues/70
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.23
rev: v0.24.1
hooks:
- id: validate-pyproject

Expand Down
2 changes: 1 addition & 1 deletion src/cmap/_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def _sorter(x: Path) -> tuple[int, Path]:
self._original_names[name] = normed_name
self._data[normed_name] = data
if alias := data.get("alias"):
self._aliases[normed_name] = cast(str, alias)
self._aliases[normed_name] = cast("str", alias)
self._rev_aliases.setdefault(self._norm_name(alias), []).append(
normed_name
)
Expand Down
2 changes: 1 addition & 1 deletion src/cmap/_colormap.py
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ def __get_validators__(cls) -> Iterator[Callable]:
yield cls.parse # pydantic validator

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


def _fill_stops(
Expand Down
2 changes: 1 addition & 1 deletion src/cmap/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def circlesineramp(
im[rad < 0] = np.nan
alpha[rad < 0] = 0

return cast(np.ndarray, im * alpha)
return cast("np.ndarray", im * alpha)


class ReportDict(TypedDict):
Expand Down
Loading