Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson authored Jan 15, 2025
2 parents 4e438c6 + e4e9935 commit be9075f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ repos:
exclude: ".*.asdf"

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
rev: v0.9.1
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down
3 changes: 1 addition & 2 deletions gwcs/converters/selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ def from_yaml_tree_transform(self, node, tag, ctx):
inputs_mapping, models.Mapping
):
msg = (
"inputs_mapping must be an instance"
"of astropy.modeling.models.Mapping."
"inputs_mapping must be an instanceof astropy.modeling.models.Mapping."
)
raise TypeError(msg)
mapper = node["mapper"]
Expand Down
2 changes: 1 addition & 1 deletion gwcs/converters/spectroscopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def from_yaml_tree_transform(self, node, tag, ctx):
groove_density=groove_density, spectral_order=order
)
else:
msg = "Can't create a GratingEquation model with " f"output {output}"
msg = f"Can't create a GratingEquation model with output {output}"
raise ValueError(msg)
return model

Expand Down
10 changes: 2 additions & 8 deletions gwcs/wcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1998,10 +1998,7 @@ def _to_fits_sip(
input_axes = sorted(set(input_axes))

if len(input_axes) != 2:
msg = (
"Only CelestialFrame that correspond to two "
"input axes are supported."
)
msg = "Only CelestialFrame that correspond to two input axes are supported."
raise ValueError(msg)

# Axis number for FITS axes.
Expand Down Expand Up @@ -2407,10 +2404,7 @@ def find_frame(axis_number):
or max(input_axes) + 1 != n_inputs
or min(input_axes) < 0
):
msg = (
"Input axes indices are inconsistent with the "
"forward transformation."
)
msg = "Input axes indices are inconsistent with the forward transformation."
raise ValueError(msg)

if detect_celestial:
Expand Down

0 comments on commit be9075f

Please sign in to comment.