Skip to content

Commit e727700

Browse files
authored
Merge pull request #86 from SWxTREC/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents a1f0057 + 0981d8c commit e727700

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ ci:
33
autoupdate_schedule: 'quarterly'
44
repos:
55
- repo: https://github.com/astral-sh/ruff-pre-commit
6-
rev: 'v0.11.4'
6+
rev: 'v0.12.2'
77
hooks:
8-
- id: ruff
8+
- id: ruff-check
99
args: [--fix]
1010
- id: ruff-format

tests/test_msis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def test_create_input_single_point(input_data, expected_input):
141141
def test_create_input_datetime(input_data, expected_input):
142142
# Test with datetime, not just np.datetime64s
143143
# .item() gets the datetime object from the np.datetime64 object
144-
input_data = (input_data[0].item(),) + input_data[1:]
144+
input_data = (input_data[0].item(), *input_data[1:])
145145
shape, data = msis.create_input(*input_data)
146146
assert shape == (1,)
147147
assert data.shape == (1, 14)
@@ -151,7 +151,7 @@ def test_create_input_datetime(input_data, expected_input):
151151
def test_create_input_f107_date_mismatch(input_data):
152152
# Make sure we raise when f107 and dates are different shapes
153153
# Repeat 5 dates, but not f107
154-
input_data = ([input_data[0]] * 5,) + input_data[1:]
154+
input_data = ([input_data[0]] * 5, *input_data[1:])
155155
with pytest.raises(ValueError, match="The length of dates"):
156156
msis.create_input(*input_data)
157157

0 commit comments

Comments
 (0)