Skip to content

Commit

Permalink
chore: update pre-commit hooks (#75)
Browse files Browse the repository at this point in the history
* chore: update pre-commit hooks

updates:
- [github.com/commitizen-tools/commitizen: v3.28.0 → v3.29.0](commitizen-tools/commitizen@v3.28.0...v3.29.0)
- [github.com/scientific-python/cookie: 2024.04.23 → 2024.08.19](scientific-python/cookie@2024.04.23...2024.08.19)
- [github.com/python-jsonschema/check-jsonschema: 0.29.1 → 0.29.2](python-jsonschema/check-jsonschema@0.29.1...0.29.2)
- [github.com/astral-sh/ruff-pre-commit: v0.5.6 → v0.6.3](astral-sh/ruff-pre-commit@v0.5.6...v0.6.3)
- [github.com/pre-commit/mirrors-mypy: v1.11.1 → v1.11.2](pre-commit/mirrors-mypy@v1.11.1...v1.11.2)
- [github.com/abravalheri/validate-pyproject: v0.18 → v0.19](abravalheri/validate-pyproject@v0.18...v0.19)

* style: pre-commit fixes

* ci: update

Signed-off-by: nstarman <[email protected]>

---------

Signed-off-by: nstarman <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: nstarman <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and nstarman authored Sep 2, 2024
1 parent b79d4a8 commit 6c3eb84
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
16 changes: 8 additions & 8 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.28.0
rev: v3.29.0
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.04.23
rev: 2024.08.19
hooks:
- id: sp-repo-review

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -101,7 +101,7 @@ repos:
- tomli

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.18
rev: v0.19
hooks:
- id: validate-pyproject

Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ ignore_missing_imports = true


[tool.ruff]
src = ["src"]

[tool.ruff.lint]
extend-select = ["ALL"]
ignore = [
Expand Down
6 changes: 3 additions & 3 deletions tests/numpy/test_jax.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6c3eb84

Please sign in to comment.