From dd471225c106e1f8b441586f0294ed993aabcbfd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 16:26:41 +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.14 → v0.2.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.14...v0.2.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eb4c39f3..16bce799 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: hooks: - id: toml-sort-fix - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.14 + rev: v0.2.0 hooks: - id: ruff args: [ --fix ] From c44ee93da3fa4f8168639e89a11d0c1d19c87424 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 16:29:52 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks --- doc/source/conf.py | 2 +- tests/test_generated_api.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index c3285f68..ff96f49e 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -15,7 +15,7 @@ from pathlib import Path sys.path.insert(0, Path("../..").resolve()) -import icclim # noqa: E402 (import need to be after path update) +import icclim # (import need to be after path update) # -- Project information ----------------------------------------------------- project = "icclim" diff --git a/tests/test_generated_api.py b/tests/test_generated_api.py index 114aeee5..86f00e77 100644 --- a/tests/test_generated_api.py +++ b/tests/test_generated_api.py @@ -76,7 +76,7 @@ def build_expected_args(index: StandardIndex): def test_generated_api(generic_index_fun_mock: MagicMock): for i in EcadIndexRegistry.values(): # GIVEN - api_index_fun = eval(f"icclim.{i.short_name.lower()}") # noqa: PGH001 + api_index_fun = eval(f"icclim.{i.short_name.lower()}") # WHEN api_index_fun(**DEFAULT_ARGS) # THEN @@ -84,7 +84,7 @@ def test_generated_api(generic_index_fun_mock: MagicMock): generic_index_fun_mock.assert_called_with(**expected_call_args) for g in GenericIndicatorRegistry.values(): # GIVEN - api_index_fun = eval(f"icclim.{g.name.lower()}") # noqa: PGH001 + api_index_fun = eval(f"icclim.{g.name.lower()}") # WHEN api_index_fun(**DEFAULT_ARGS) generic_index_fun_mock.assert_called()