diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dd45f17..8fe9460 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/cordex/cmor/utils.py b/cordex/cmor/utils.py index 963a6b9..5fcfe3c 100644 --- a/cordex/cmor/utils.py +++ b/cordex/cmor/utils.py @@ -1,5 +1,4 @@ -"""CORDEX Cmorization utilities. -""" +"""CORDEX Cmorization utilities.""" import datetime as dt import json diff --git a/cordex/esgf_access.py b/cordex/esgf_access.py index 36d0d6b..18ff57c 100644 --- a/cordex/esgf_access.py +++ b/cordex/esgf_access.py @@ -1,5 +1,4 @@ -"""this module should help on managing ESGF metadata -""" +"""this module should help on managing ESGF metadata""" import pandas as pd @@ -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):