Skip to content

Commit 6ba98c8

Browse files
committed
Ruff format
1 parent a28ed77 commit 6ba98c8

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

dataretrieval/nwis.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,6 @@ def _read_json(json):
994994
index_list.append(len(site_list))
995995

996996
for start, end in zip(index_list[:-1], index_list[1:]):
997-
998997
# grab a block containing timeseries 0:21,
999998
# which are all from the same site
1000999
site_block = json["value"]["timeSeries"][start:end]

dataretrieval/waterdata/utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,7 @@ def _check_ogc_requests(endpoint: str = "daily", req_type: str = "queryables"):
296296
If the HTTP request returns an unsuccessful status code.
297297
"""
298298
if req_type not in ("queryables", "schema"):
299-
raise ValueError(
300-
f"req_type must be 'queryables' or 'schema', got {req_type!r}"
301-
)
299+
raise ValueError(f"req_type must be 'queryables' or 'schema', got {req_type!r}")
302300
url = f"{OGC_API_URL}/collections/{endpoint}/{req_type}"
303301
resp = requests.get(url, headers=_default_headers())
304302
resp.raise_for_status()

0 commit comments

Comments
 (0)