Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#412)
Browse files Browse the repository at this point in the history
* [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]>
  • Loading branch information
pre-commit-ci[bot] and lkstrp authored Dec 9, 2024
1 parent 5e224f5 commit 14b8894
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions atlite/datasets/era5.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,15 +306,15 @@ 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:
query = {
"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
Expand Down

0 comments on commit 14b8894

Please sign in to comment.