Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update pre-commit hooks #40

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ci:

repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.21.3
rev: v4.1.0
hooks:
- id: commitizen
# - id: commitizen-branch
Expand All @@ -15,12 +15,12 @@ repos:
- id: check-useless-excludes

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

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand Down Expand Up @@ -48,7 +48,7 @@ repos:
- id: text-unicode-replacement-char

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.3.5"
rev: "v0.8.6"
hooks:
# Run the linter
- id: ruff
Expand All @@ -59,7 +59,7 @@ repos:
types_or: [python, pyi, jupyter]

- repo: https://github.com/adamchainz/blacken-docs
rev: "1.16.0"
rev: "1.19.1"
hooks:
- id: blacken-docs
additional_dependencies: [black==23.*]
Expand All @@ -72,19 +72,19 @@ repos:
args: [--prose-wrap=always]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.9.0"
rev: "v1.14.1"
hooks:
- id: mypy
files: src
additional_dependencies:
- pytest

- repo: https://github.com/codespell-project/codespell
rev: "v2.2.6"
rev: "v2.3.0"
hooks:
- id: codespell

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.16
rev: v0.23
hooks:
- id: validate-pyproject
2 changes: 1 addition & 1 deletion src/interpolated_coordinates/representation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

__all__ = [
"InterpolatedBaseRepresentationOrDifferential",
"InterpolatedRepresentation",
"InterpolatedCartesianRepresentation",
"InterpolatedDifferential",
"InterpolatedRepresentation",
]

import abc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
from astropy.coordinates.representation import DIFFERENTIAL_CLASSES

__all__ = [
"GenericRepresentation",
"GenericDifferential",
"GenericRepresentation",
]

##############################################################################
Expand Down
4 changes: 2 additions & 2 deletions src/interpolated_coordinates/utils/spline.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@
from __future__ import annotations

__all__ = [
"UnivariateSplinewithUnits",
"InterpolatedUnivariateSplinewithUnits",
"LSQUnivariateSplinewithUnits",
"UnivariateSplinewithUnits",
]

import warnings
Expand Down Expand Up @@ -335,7 +335,7 @@ def validate_input(
# then validate with UnivariateSpline method, which works with units!
out: tuple[ndarray, ndarray, ndarray, list[Quantity], int | str]
out = super().validate_input(x, y, w, bbox, k, s, ext, check_finite)
return out # noqa: RET504
return out

@classmethod
def _from_tck(
Expand Down
4 changes: 1 addition & 3 deletions tests/test_representation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

__all__ = [
"Test_InterpolatedBaseRepresentationOrDifferential",
"Test_InterpolatedRepresentation",
"Test_InterpolatedCartesianRepresentation",
"Test_InterpolatedDifferential",
"Test_InterpolatedRepresentation",
]


Expand Down Expand Up @@ -625,8 +625,6 @@ def test___truediv__(self, irep, affine) -> None:
for c in expected.components:
assert all(getattr(got, c) == getattr(expected, c))

#


#####################################################################

Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils/test_generic_representation.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Testing :mod:`~interpolated_coordinates.utils.generic_representation`."""

__all__ = [
"test_GENERIC_REGISTRY",
"Test_GenericRepresentation",
"test_GENERIC_REGISTRY",
]


Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils/test_spline.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""Testing :mod:`~interpolated_coordinates.utils.splines`."""

__all__ = [
"Test_UnivariateSplinewithUnits",
"Test_InterpolatedUnivariateSplinewithUnits",
"Test_LSQUnivariateSplinewithUnits",
"Test_UnivariateSplinewithUnits",
]

import astropy.units as u
Expand Down
Loading