Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: ravi_kumar_pilla <[email protected]>
  • Loading branch information
ravi-kumar-pilla committed Jan 8, 2025
1 parent fd651dd commit 1a88348
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion kedro/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import sys
import warnings
from typing import Any

__version__ = "0.19.10"

Expand All @@ -31,7 +32,7 @@ class KedroPythonVersionWarning(UserWarning):
)


def load_ipython_extension(ipython) -> None:
def load_ipython_extension(ipython: Any) -> None:
import kedro.ipython

kedro.ipython.load_ipython_extension(ipython)
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ layers = [
]
ignore_imports = [
"kedro.runner.task -> kedro.framework.project",
"kedro.framework.hooks.specs -> kedro.framework.context"
"kedro.framework.hooks.specs -> kedro.framework.context",
"kedro -> kedro.ipython"
]

[[tool.importlinter.contracts]]
Expand All @@ -188,6 +189,9 @@ modules = [
"kedro.pipeline",
"kedro.io"
]
ignore_imports = [
"kedro -> kedro.ipython"
]

[[tool.importlinter.contracts]]
name = "Config cannot import Runner et al"
Expand Down

0 comments on commit 1a88348

Please sign in to comment.