diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cfc59449..72e79195 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: # Run ruff to lint and format - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.7.2 + rev: v0.8.1 hooks: # Run the linter. - id: ruff @@ -49,6 +49,6 @@ repos: # Reuse compliance - repo: https://github.com/fsfe/reuse-tool - rev: v4.0.3 + rev: v5.0.2 hooks: - id: reuse diff --git a/atlite/datasets/era5.py b/atlite/datasets/era5.py index 04e88015..d1e5224f 100644 --- a/atlite/datasets/era5.py +++ b/atlite/datasets/era5.py @@ -306,7 +306,7 @@ def retrieval_times(coords, static=False, monthly_requests=False): "year": str(year), "month": str(month), "day": list(t[t.month == month].day.unique()), - "time": ["%02d:00" % h for h in t[t.month == month].hour.unique()], + "time": [f"{h:02d}:00" for h in t[t.month == month].hour.unique()], } times.append(query) else: @@ -314,7 +314,7 @@ def retrieval_times(coords, static=False, monthly_requests=False): "year": str(year), "month": list(t.month.unique()), "day": list(t.day.unique()), - "time": ["%02d:00" % h for h in t.hour.unique()], + "time": [f"{h:02d}:00" for h in t.hour.unique()], } times.append(query) return times