diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f0235f776..070875eed 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,13 +7,13 @@ default_stages: minimum_pre_commit_version: 3.0.0 repos: - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.9.0 + rev: v1.10.0 hooks: - id: mypy additional_dependencies: [numpy>=1.25.0] files: ^src - repo: https://github.com/psf/black - rev: 24.3.0 + rev: 24.4.2 hooks: - id: black additional_dependencies: [toml] @@ -29,7 +29,7 @@ repos: additional_dependencies: [toml] args: [--order-by-type] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: check-merge-conflict - id: check-ast @@ -63,7 +63,7 @@ repos: - id: doc8 - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.3.5 + rev: v0.4.2 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/src/moscot/problems/time/_mixins.py b/src/moscot/problems/time/_mixins.py index 8b9401a57..b06bf67b7 100644 --- a/src/moscot/problems/time/_mixins.py +++ b/src/moscot/problems/time/_mixins.py @@ -637,8 +637,8 @@ def _get_data( tag = self.problems[src, tgt].xy.tag # type: ignore[union-attr] if tag != Tag.POINT_CLOUD: raise ValueError( - f"Expected `tag={Tag.POINT_CLOUD}`, " # type: ignore[union-attr] - f"found `tag={self.problems[src, tgt].xy.tag}`." + f"Expected `tag={Tag.POINT_CLOUD}`, " + f"found `tag={self.problems[src, tgt].xy.tag}`." # type: ignore[union-attr] ) if src == source: source_data = self.problems[src, tgt].xy.data_src # type: ignore[union-attr]