From 38b827f2b69f7352d8196de773c2fedc151d060c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Apr 2024 21:17:06 +0000 Subject: [PATCH 1/3] chore: update pre-commit hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/commitizen-tools/commitizen: v3.14.1 → v3.21.3](https://github.com/commitizen-tools/commitizen/compare/v3.14.1...v3.21.3) - [github.com/scientific-python/cookie: 2024.01.24 → 2024.03.10](https://github.com/scientific-python/cookie/compare/2024.01.24...2024.03.10) - [github.com/python-jsonschema/check-jsonschema: 0.27.4 → 0.28.1](https://github.com/python-jsonschema/check-jsonschema/compare/0.27.4...0.28.1) - [github.com/astral-sh/ruff-pre-commit: v0.2.0 → v0.3.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.0...v0.3.5) - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.8.0...v1.9.0) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6a04076..8a02d98 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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 @@ -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 @@ -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 From 90458686ae8e7d7f4088f9574292ecbe702aba38 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Apr 2024 21:17:23 +0000 Subject: [PATCH 2/3] style: pre-commit fixes --- src/quaxed/__init__.py | 1 - src/quaxed/array_api/_types.py | 6 ++---- src/quaxed/scipy/special.py | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/quaxed/__init__.py b/src/quaxed/__init__.py index e1817eb..c7ec94c 100644 --- a/src/quaxed/__init__.py +++ b/src/quaxed/__init__.py @@ -5,7 +5,6 @@ # pylint: disable=redefined-builtin - __all__ = ["__version__", "array_api"] from typing import Any diff --git a/src/quaxed/array_api/_types.py b/src/quaxed/array_api/_types.py index ce81281..34b6b8b 100644 --- a/src/quaxed/array_api/_types.py +++ b/src/quaxed/array_api/_types.py @@ -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: ... diff --git a/src/quaxed/scipy/special.py b/src/quaxed/scipy/special.py index cf15eae..e5056ec 100644 --- a/src/quaxed/scipy/special.py +++ b/src/quaxed/scipy/special.py @@ -1,6 +1,6 @@ """Quaxed :mod:`jax.scipy.special`.""" -__all__ = [ # noqa: F822 +__all__ = [ "bernoulli", "betainc", "betaln", From b8d85d69271787d578e064369b726f8235d3417d Mon Sep 17 00:00:00 2001 From: nstarman Date: Tue, 2 Apr 2024 20:29:08 -0400 Subject: [PATCH 3/3] style: add noqa Signed-off-by: nstarman --- src/quaxed/scipy/special.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/quaxed/scipy/special.py b/src/quaxed/scipy/special.py index e5056ec..62d7324 100644 --- a/src/quaxed/scipy/special.py +++ b/src/quaxed/scipy/special.py @@ -1,3 +1,5 @@ +# ruff:noqa: F822 + """Quaxed :mod:`jax.scipy.special`.""" __all__ = [