Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#317)
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.9.3 → v0.9.6](astral-sh/ruff-pre-commit@v0.9.3...v0.9.6)
- [github.com/psf/black: 24.10.0 → 25.1.0](psf/black@24.10.0...25.1.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Feb 12, 2025
1 parent 33e1648 commit f4d7399
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ repos:

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: 'v0.9.3'
rev: 'v0.9.6'
hooks:
- id: ruff
args: ["--fix"]

- repo: https://github.com/psf/black
rev: 24.10.0
rev: 25.1.0
hooks:
- id: black

Expand Down
3 changes: 1 addition & 2 deletions cordex/cmor/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""CORDEX Cmorization utilities.
"""
"""CORDEX Cmorization utilities."""

import datetime as dt
import json
Expand Down
5 changes: 2 additions & 3 deletions cordex/esgf_access.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""this module should help on managing ESGF metadata
"""
"""this module should help on managing ESGF metadata"""

import pandas as pd

Expand Down Expand Up @@ -132,7 +131,7 @@ def get_opendap_urls(attrs, conn=None, agg=False, verbose=False):

def _split_dataset_id(dataset_id):
"""splits a dataset id into list of values."""
return dataset_id.split("|")[0].split(".") + [(dataset_id.split("|")[1])]
return dataset_id.split("|")[0].split(".") + [dataset_id.split("|")[1]]


def _get_columns(columns=None):
Expand Down

0 comments on commit f4d7399

Please sign in to comment.