Skip to content

Commit 9e5e2b0

Browse files
MNT: satisfy ruff format on the NOAA catalog helpers
Collapse the RuntimeError message and the test assertion the formatter wants on one line. No behaviour change. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent feec9ec commit 9e5e2b0

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

‎rocketpy/environment/fetchers/noaa_catalog.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,5 @@ def fetch_latest_noaa_dataset(
407407
time.sleep(min(base_delay**attempt_count, MAX_RETRY_DELAY_SECONDS))
408408

409409
raise RuntimeError(
410-
"Unable to load the latest NOAA/THREDDS weather dataset through "
411-
+ file_url
410+
"Unable to load the latest NOAA/THREDDS weather dataset through " + file_url
412411
)

‎tests/unit/environment/test_fetchers.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,9 +439,7 @@ def test_list_noaa_atmosphere_datasets_parses_catalog_refs(monkeypatch):
439439
"NAM CONUS 12km from NOAAPORT",
440440
]
441441
assert datasets[0]["collection_path"] == "grib/NCEP/GFS/Global_0p25deg"
442-
assert datasets[0]["opendap_best_url"].endswith(
443-
"grib/NCEP/GFS/Global_0p25deg/Best"
444-
)
442+
assert datasets[0]["opendap_best_url"].endswith("grib/NCEP/GFS/Global_0p25deg/Best")
445443

446444

447445
def test_list_noaa_dataset_identifiers_sorts_runs_newest_first(monkeypatch):

0 commit comments

Comments
 (0)