Skip to content

Commit 14b8894

Browse files
[pre-commit.ci] pre-commit autoupdate (#412)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.2 → v0.8.1](astral-sh/ruff-pre-commit@v0.7.2...v0.8.1) - [github.com/fsfe/reuse-tool: v4.0.3 → v5.0.2](fsfe/reuse-tool@v4.0.3...v5.0.2) * fix ruff --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: lkstrp <[email protected]>
1 parent 5e224f5 commit 14b8894

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
@@ -15,7 +15,7 @@ repos:
1515
# Run ruff to lint and format
1616
- repo: https://github.com/astral-sh/ruff-pre-commit
1717
# Ruff version.
18-
rev: v0.7.2
18+
rev: v0.8.1
1919
hooks:
2020
# Run the linter.
2121
- id: ruff
@@ -49,6 +49,6 @@ repos:
4949

5050
# Reuse compliance
5151
- repo: https://github.com/fsfe/reuse-tool
52-
rev: v4.0.3
52+
rev: v5.0.2
5353
hooks:
5454
- id: reuse

atlite/datasets/era5.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,15 +306,15 @@ def retrieval_times(coords, static=False, monthly_requests=False):
306306
"year": str(year),
307307
"month": str(month),
308308
"day": list(t[t.month == month].day.unique()),
309-
"time": ["%02d:00" % h for h in t[t.month == month].hour.unique()],
309+
"time": [f"{h:02d}:00" for h in t[t.month == month].hour.unique()],
310310
}
311311
times.append(query)
312312
else:
313313
query = {
314314
"year": str(year),
315315
"month": list(t.month.unique()),
316316
"day": list(t.day.unique()),
317-
"time": ["%02d:00" % h for h in t.hour.unique()],
317+
"time": [f"{h:02d}:00" for h in t.hour.unique()],
318318
}
319319
times.append(query)
320320
return times

0 commit comments

Comments
 (0)