Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #794

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ default_stages:
minimum_pre_commit_version: 3.0.0
repos:
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1
rev: v1.15.0
hooks:
- id: mypy
additional_dependencies: [numpy>=1.25.0]
files: ^src
- repo: https://github.com/psf/black
rev: 24.10.0
rev: 25.1.0
hooks:
- id: black
additional_dependencies: [toml]
Expand All @@ -23,7 +23,7 @@ repos:
- id: prettier
language_version: system
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
rev: 6.0.0
hooks:
- id: isort
additional_dependencies: [toml]
Expand Down Expand Up @@ -63,7 +63,7 @@ repos:
- id: doc8
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.9.3
rev: v0.9.6
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
2 changes: 1 addition & 1 deletion src/moscot/base/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _get_array_data(
**kwargs: Any,
) -> TaggedArrayData:
def to_tuple(
data: Optional[Union[ArrayLike, Tuple[ArrayLike, ArrayLike]]]
data: Optional[Union[ArrayLike, Tuple[ArrayLike, ArrayLike]]],
) -> Tuple[Optional[ArrayLike], Optional[ArrayLike]]:
if not isinstance(data, tuple):
return data, None
Expand Down
2 changes: 1 addition & 1 deletion src/moscot/plotting/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def _contrasting_color(r: int, g: int, b: int) -> str:


def _input_to_adatas(
inp: Union[AnnData, Tuple[AnnData, AnnData], "CompoundProblem"] # type: ignore[type-arg]
inp: Union[AnnData, Tuple[AnnData, AnnData], "CompoundProblem"], # type: ignore[type-arg]
) -> Tuple[AnnData, AnnData]:
from moscot.base.problems import CompoundProblem

Expand Down
Loading