Skip to content

Commit

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

updates:
- [github.com/scientific-python/cookie: 2024.03.10 → 2024.04.23](scientific-python/cookie@2024.03.10...2024.04.23)
- [github.com/astral-sh/ruff-pre-commit: v0.4.1 → v0.4.2](astral-sh/ruff-pre-commit@v0.4.1...v0.4.2)
- [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.8](pre-commit/mirrors-prettier@v3.1.0...v4.0.0-alpha.8)
- [github.com/pre-commit/mirrors-mypy: v1.9.0 → v1.10.0](pre-commit/mirrors-mypy@v1.9.0...v1.10.0)

* fix: type ignore

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 committed Apr 30, 2024
1 parent a4054c8 commit 3c76d7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
- id: check-useless-excludes

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

Expand Down Expand Up @@ -51,7 +51,7 @@ repos:
- id: check-readthedocs

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.4.1"
rev: "v0.4.2"
hooks:
# Run the linter
- id: ruff
Expand All @@ -68,14 +68,14 @@ repos:
additional_dependencies: [black==24.*]

- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.1.0"
rev: "v4.0.0-alpha.8"
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.9.0"
rev: "v1.10.0"
hooks:
- id: mypy
files: src
Expand Down
2 changes: 1 addition & 1 deletion src/galax/utils/dataclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def init(self: _DataclassInstance, *args: Any, **kwargs: Any) -> None:
if f.name in ba.arguments and "converter" in f.metadata:
ba.arguments[f.name] = f.metadata["converter"](ba.arguments[f.name])
# Call the original `__init__`.
init.__wrapped__(*ba.args, **ba.kwargs) # type: ignore[attr-defined]
init.__wrapped__(*ba.args, **ba.kwargs)

cls.__init__ = init # type: ignore[assignment,method-assign]

Expand Down

0 comments on commit 3c76d7e

Please sign in to comment.