From 7f5f570c2fa739e6acd47e2f6656fb6491483607 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 18:25:57 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.11 → v0.1.14](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.11...v0.1.14) - [github.com/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 41eb920..b3eb11e 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.1.11' + rev: 'v0.1.14' hooks: - id: ruff args: ["--fix"] - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black From 280efdeff668c2aeeae849ed4fe4f69ae87dfc17 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 18:26:17 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- notebooks/remo-cmor-dev-json.ipynb | 2 +- pyremo/cli.py | 1 + pyremo/cmor/derived.py | 1 - pyremo/core/exp.py | 1 + pyremo/tutorial.py | 1 + 5 files changed, 4 insertions(+), 2 deletions(-) diff --git a/notebooks/remo-cmor-dev-json.ipynb b/notebooks/remo-cmor-dev-json.ipynb index 386631c..a5be9f4 100644 --- a/notebooks/remo-cmor-dev-json.ipynb +++ b/notebooks/remo-cmor-dev-json.ipynb @@ -103,7 +103,7 @@ " CORDEX_domain=\"EUR-11\",\n", " time_units=None,\n", " allow_units_convert=True,\n", - " allow_derive=True\n", + " allow_derive=True,\n", " # inpath = cx.tables.cmor_tables_inpath,\n", " # inpath=\"/Users/lars/.cordex-cmor-tables\",\n", " # inpath=\"/Users/lars/python/euro-cordex/tables/cordex-cmor-tables/CORDEX-CMIP5\"\n", diff --git a/pyremo/cli.py b/pyremo/cli.py index f39b608..e57a2b1 100644 --- a/pyremo/cli.py +++ b/pyremo/cli.py @@ -1,4 +1,5 @@ """Console script for pyremo.""" + import argparse import os from os import path as op diff --git a/pyremo/cmor/derived.py b/pyremo/cmor/derived.py index abd3162..80d3040 100644 --- a/pyremo/cmor/derived.py +++ b/pyremo/cmor/derived.py @@ -1,7 +1,6 @@ """Compute derived variables for cmorization. """ - import inspect from warnings import warn diff --git a/pyremo/core/exp.py b/pyremo/core/exp.py index f741793..87f63b0 100644 --- a/pyremo/core/exp.py +++ b/pyremo/core/exp.py @@ -1,5 +1,6 @@ """Module for working and parsing Remo output files. """ + import os from pathlib import Path diff --git a/pyremo/tutorial.py b/pyremo/tutorial.py index b12adc4..cb199ab 100644 --- a/pyremo/tutorial.py +++ b/pyremo/tutorial.py @@ -4,6 +4,7 @@ * building tutorials in the documentation. * stolen from xarray! """ + # code stolen from xarray, I am sorry! import os import pathlib