Skip to content

Commit

Permalink
chore: update pre-commit hooks (#175)
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 <nstarman@users.noreply.github.com>

---------

Signed-off-by: nstarman <nstarman@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: nstarman <nstarman@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] and nstarman authored Sep 2, 2024
1 parent f891863 commit 4e4edac
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 All @@ -45,14 +45,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 @@ -68,15 +68,15 @@ repos:
- id: blacken-docs
additional_dependencies: [black==24.*]

- 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 @@ -89,7 +89,7 @@ repos:
- id: codespell

- repo: https://github.com/abravalheri/validate-pyproject
rev: "v0.18"
rev: "v0.19"
hooks:
- id: validate-pyproject
# additional_dependencies: ["validate-pyproject-schema-store[all]"]
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@


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

[tool.ruff.lint]
extend-select = ["ALL"]
ignore = [
Expand Down
6 changes: 3 additions & 3 deletions tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class AbstractPositionTest(AbstractVectorTest):
"""Test :class:`coordinax.AbstractPosition`."""

@pytest.fixture(scope="class")
def vector(self) -> AbstractPosition: # noqa: PT004
def vector(self) -> AbstractPosition:
"""Return a vector."""
raise NotImplementedError

Expand All @@ -206,12 +206,12 @@ class AbstractVelocityTest(AbstractVectorTest):
"""Test :class:`coordinax.AbstractVelocity`."""

@pytest.fixture(scope="class")
def vector(self) -> AbstractPosition: # noqa: PT004
def vector(self) -> AbstractPosition:
"""Return a vector."""
raise NotImplementedError

@pytest.fixture(scope="class")
def difntl(self) -> AbstractVelocity: # noqa: PT004
def difntl(self) -> AbstractVelocity:
"""Return a vector."""
raise NotImplementedError

Expand Down

0 comments on commit 4e4edac

Please sign in to comment.