From f4d7399bfaa8d8121c2b832698391c6414194ebb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 12 Feb 2025 19:00:44 +0100 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#317) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.9.3 → v0.9.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.3...v0.9.6) - [github.com/psf/black: 24.10.0 → 25.1.0](https://github.com/psf/black/compare/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> --- .pre-commit-config.yaml | 4 ++-- cordex/cmor/utils.py | 3 +-- cordex/esgf_access.py | 5 ++--- 3 files changed, 5 insertions(+), 7 deletions(-) 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):