Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Feb 5, 2024
1 parent dd47122 commit c44ee93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions tests/test_generated_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ 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
expected_call_args = build_expected_args(i)
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()
Expand Down

0 comments on commit c44ee93

Please sign in to comment.