[go: nahoru, domu]

Skip to content

Commit

Permalink
fix precommit (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
giovp committed May 9, 2023
1 parent 1fabc5a commit b074135
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ default_stages:
minimum_pre_commit_version: 2.9.3
repos:
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.0.0
rev: v1.2.0
hooks:
- id: mypy
additional_dependencies: [numpy, pandas, types-requests]
exclude: .scripts/ci/download_data.py|squidpy/datasets/_(dataset|image).py # See https://github.com/pre-commit/mirrors-mypy/issues/33
- repo: https://github.com/psf/black
rev: 23.1.0
rev: 23.3.0
hooks:
- id: black
additional_dependencies: [toml]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.4
rev: v3.0.0-alpha.9-for-vscode
hooks:
- id: prettier
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down Expand Up @@ -56,7 +56,7 @@ repos:
- id: blacken-docs
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: v0.0.246
rev: v0.0.265
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
2 changes: 1 addition & 1 deletion docs/source/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,4 @@ def _fwd_ref_init(
pass


ForwardRef.__init__ = _fwd_ref_init # type: ignore[assignment]
ForwardRef.__init__ = _fwd_ref_init # type: ignore[method-assign]
2 changes: 1 addition & 1 deletion squidpy/_constants/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __new__( # noqa: D102
cls, clsname: str, bases: Tuple[EnumMeta, ...], namespace: Mapping[str, Any]
) -> "ABCEnumMeta":
res = super().__new__(cls, clsname, bases, namespace) # type: ignore[arg-type]
res.__new__ = _pretty_raise_enum(res, res.__new__) # type: ignore[assignment,arg-type]
res.__new__ = _pretty_raise_enum(res, res.__new__) # type: ignore[method-assign,arg-type]
return res


Expand Down

0 comments on commit b074135

Please sign in to comment.