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 ] 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()