Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#809)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](pre-commit/mirrors-mypy@v1.8.0...v1.9.0)
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0)
- [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.3.7](astral-sh/ruff-pre-commit@v0.2.2...v0.3.7)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Apr 22, 2024
1 parent 3d0aa0b commit 2d8263c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand Down Expand Up @@ -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]
Expand Down
9 changes: 3 additions & 6 deletions src/squidpy/im/_feature_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tests/datasets/test_download_visium_dataset.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""""
""" "
Tests to make sure the Visium example datasets load.
"""

Expand Down

0 comments on commit 2d8263c

Please sign in to comment.