From 6c3eb8470634dc453b4749810c9521458db2a82a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Sep 2024 18:52:14 -0400 Subject: [PATCH] chore: update pre-commit hooks (#75) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: update pre-commit hooks updates: - [github.com/commitizen-tools/commitizen: v3.28.0 → v3.29.0](https://github.com/commitizen-tools/commitizen/compare/v3.28.0...v3.29.0) - [github.com/scientific-python/cookie: 2024.04.23 → 2024.08.19](https://github.com/scientific-python/cookie/compare/2024.04.23...2024.08.19) - [github.com/python-jsonschema/check-jsonschema: 0.29.1 → 0.29.2](https://github.com/python-jsonschema/check-jsonschema/compare/0.29.1...0.29.2) - [github.com/astral-sh/ruff-pre-commit: v0.5.6 → v0.6.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.6...v0.6.3) - [github.com/pre-commit/mirrors-mypy: v1.11.1 → v1.11.2](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.1...v1.11.2) - [github.com/abravalheri/validate-pyproject: v0.18 → v0.19](https://github.com/abravalheri/validate-pyproject/compare/v0.18...v0.19) * style: pre-commit fixes * ci: update Signed-off-by: nstarman --------- Signed-off-by: nstarman Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: nstarman --- .pre-commit-config.yaml | 16 ++++++++-------- pyproject.toml | 2 -- tests/numpy/test_jax.py | 6 +++--- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1722eaa..0e23ac6 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.28.0 + rev: v3.29.0 hooks: - id: commitizen - id: commitizen-branch @@ -18,7 +18,7 @@ repos: - id: check-useless-excludes - repo: https://github.com/scientific-python/cookie - rev: 2024.04.23 + rev: 2024.08.19 hooks: - id: sp-repo-review @@ -46,14 +46,14 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.29.1 + rev: 0.29.2 hooks: - id: check-dependabot - id: check-github-workflows - id: check-readthedocs - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.5.6" + rev: "v0.6.3" hooks: # Run the linter - id: ruff @@ -69,15 +69,15 @@ repos: - id: blacken-docs additional_dependencies: [black==23.*] - - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v4.0.0-alpha.8" + - repo: https://github.com/rbubley/mirrors-prettier + rev: "v3.3.3" hooks: - id: prettier types_or: [yaml, markdown, html, css, scss, javascript, json] args: [--prose-wrap=always] - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.11.1" + rev: "v1.11.2" hooks: - id: mypy files: src @@ -101,7 +101,7 @@ repos: - tomli - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.18 + rev: v0.19 hooks: - id: validate-pyproject diff --git a/pyproject.toml b/pyproject.toml index 0cafe00..4b3c26e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -119,8 +119,6 @@ ignore_missing_imports = true [tool.ruff] -src = ["src"] - [tool.ruff.lint] extend-select = ["ALL"] ignore = [ diff --git a/tests/numpy/test_jax.py b/tests/numpy/test_jax.py index 9154c99..259c80b 100644 --- a/tests/numpy/test_jax.py +++ b/tests/numpy/test_jax.py @@ -11,19 +11,19 @@ import quaxed.numpy as qnp -@pytest.fixture() +@pytest.fixture def x1(): """Test input.""" return jnp.array([1, 2, 3], dtype=float) -@pytest.fixture() +@pytest.fixture def x2(): """Test input.""" return jnp.array([4, 5, 6], dtype=float) -@pytest.fixture() +@pytest.fixture def xbool(): """Test input.""" return jnp.array([True, False, True], dtype=bool)