diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9c1e6fe4..f4e9165a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ default_stages: minimum_pre_commit_version: 2.9.3 repos: - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.8.0 + rev: v1.9.0 hooks: - id: mypy additional_dependencies: [numpy, pandas, types-requests] @@ -17,7 +17,7 @@ repos: hooks: - id: prettier - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: detect-private-key - id: check-merge-conflict @@ -46,7 +46,7 @@ repos: name: Check executable files use .sh extension types: [shell, executable] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.2.2 + rev: v0.3.7 hooks: - id: ruff types_or: [python, pyi, jupyter] diff --git a/src/squidpy/im/_feature_mixin.py b/src/squidpy/im/_feature_mixin.py index d0caddf1..d327d71c 100644 --- a/src/squidpy/im/_feature_mixin.py +++ b/src/squidpy/im/_feature_mixin.py @@ -66,18 +66,15 @@ def _get_channels(xr_img: NDArrayA | xr.DataArray, channels: Channel_t | None) - class HasGetItemProtocol(Protocol): """Protocol for FeatureMixin to have correct definition of ImageContainer.""" - def __getitem__(self, key: str) -> xr.DataArray: - ... + def __getitem__(self, key: str) -> xr.DataArray: ... @property def data(self) -> xr.Dataset: # noqa: D102 ... - def _get_layer(self, layer: str | None) -> str: - ... + def _get_layer(self, layer: str | None) -> str: ... - def _get_library_id(self, library_id: str | None) -> str: - ... + def _get_library_id(self, library_id: str | None) -> str: ... class FeatureMixin: diff --git a/tests/datasets/test_download_visium_dataset.py b/tests/datasets/test_download_visium_dataset.py index 887bd392..12a6506d 100644 --- a/tests/datasets/test_download_visium_dataset.py +++ b/tests/datasets/test_download_visium_dataset.py @@ -1,4 +1,4 @@ -"""" +""" " Tests to make sure the Visium example datasets load. """