Skip to content

Commit be9075f

Browse files
[pre-commit.ci] pre-commit autoupdate (#549)
2 parents 4e438c6 + e4e9935 commit be9075f

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ repos:
5454
exclude: ".*.asdf"
5555

5656
- repo: https://github.com/astral-sh/ruff-pre-commit
57-
rev: v0.6.9
57+
rev: v0.9.1
5858
hooks:
5959
- id: ruff
6060
args: ["--fix", "--show-fixes"]

gwcs/converters/selector.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ def from_yaml_tree_transform(self, node, tag, ctx):
3434
inputs_mapping, models.Mapping
3535
):
3636
msg = (
37-
"inputs_mapping must be an instance"
38-
"of astropy.modeling.models.Mapping."
37+
"inputs_mapping must be an instanceof astropy.modeling.models.Mapping."
3938
)
4039
raise TypeError(msg)
4140
mapper = node["mapper"]

gwcs/converters/spectroscopy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def from_yaml_tree_transform(self, node, tag, ctx):
102102
groove_density=groove_density, spectral_order=order
103103
)
104104
else:
105-
msg = "Can't create a GratingEquation model with " f"output {output}"
105+
msg = f"Can't create a GratingEquation model with output {output}"
106106
raise ValueError(msg)
107107
return model
108108

gwcs/wcs.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -1998,10 +1998,7 @@ def _to_fits_sip(
19981998
input_axes = sorted(set(input_axes))
19991999

20002000
if len(input_axes) != 2:
2001-
msg = (
2002-
"Only CelestialFrame that correspond to two "
2003-
"input axes are supported."
2004-
)
2001+
msg = "Only CelestialFrame that correspond to two input axes are supported."
20052002
raise ValueError(msg)
20062003

20072004
# Axis number for FITS axes.
@@ -2407,10 +2404,7 @@ def find_frame(axis_number):
24072404
or max(input_axes) + 1 != n_inputs
24082405
or min(input_axes) < 0
24092406
):
2410-
msg = (
2411-
"Input axes indices are inconsistent with the "
2412-
"forward transformation."
2413-
)
2407+
msg = "Input axes indices are inconsistent with the forward transformation."
24142408
raise ValueError(msg)
24152409

24162410
if detect_celestial:

0 commit comments

Comments
 (0)