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

chore: update pre-commit hooks #42

Merged
merged 3 commits into from
Apr 3, 2024
Merged
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
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ default_stages: [pre-commit, pre-push]

repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.14.1
rev: v3.21.3
hooks:
- id: commitizen
- id: commitizen-branch
Expand All @@ -18,7 +18,7 @@ repos:
- id: check-useless-excludes

- repo: https://github.com/scientific-python/cookie
rev: 2024.01.24
rev: 2024.03.10
hooks:
- id: sp-repo-review

Expand Down Expand Up @@ -47,14 +47,14 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.4
rev: 0.28.1
hooks:
- id: check-dependabot
- id: check-github-workflows
- id: check-readthedocs

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.2.0"
rev: "v0.3.5"
hooks:
# Run the linter
- id: ruff
Expand All @@ -78,7 +78,7 @@ repos:
args: [--prose-wrap=always]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.8.0"
rev: "v1.9.0"
hooks:
- id: mypy
files: src
Expand Down
1 change: 0 additions & 1 deletion src/quaxed/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

# pylint: disable=redefined-builtin


__all__ = ["__version__", "array_api"]

from typing import Any
Expand Down
6 changes: 2 additions & 4 deletions src/quaxed/array_api/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ class SupportsBufferProtocol(Protocol):
class NestedSequence(Protocol[_T_co]):
"""A nested sequence."""

def __getitem__(self, key: int, /) -> "_T_co | NestedSequence[_T_co]":
...
def __getitem__(self, key: int, /) -> "_T_co | NestedSequence[_T_co]": ...

def __len__(self, /) -> int:
...
def __len__(self, /) -> int: ...
4 changes: 3 additions & 1 deletion src/quaxed/scipy/special.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# ruff:noqa: F822

"""Quaxed :mod:`jax.scipy.special`."""

__all__ = [ # noqa: F822
__all__ = [
"bernoulli",
"betainc",
"betaln",
Expand Down
Loading