Skip to content

Commit

Permalink
Remove unused imports from all files except __init__.py files
Browse files Browse the repository at this point in the history
  • Loading branch information
kaemo authored and Galileo-Galilei committed May 2, 2020
1 parent c4be6b1 commit 62ce816
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 18 deletions.
2 changes: 0 additions & 2 deletions kedro_mlflow/hooks/node_hook.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import re
from typing import Any, Dict

import mlflow
from kedro.hooks import hook_impl
from kedro.io import DataCatalog
from kedro.pipeline import Pipeline
from kedro.pipeline.node import Node


Expand Down
8 changes: 1 addition & 7 deletions kedro_mlflow/hooks/pipeline_hook.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import re
import sys
from pathlib import Path
from typing import Any, Dict, Union
Expand All @@ -8,17 +7,12 @@
from kedro.hooks import hook_impl
from kedro.io import DataCatalog
from kedro.pipeline import Pipeline
from kedro.pipeline.node import Node
from kedro.versioning.journal import _git_sha

from kedro_mlflow.context import get_mlflow_conf
from kedro_mlflow.mlflow import KedroPipelineModel
from kedro_mlflow.pipeline import PipelineML
from kedro_mlflow.utils import (
_get_package_requirements,
_get_project_globals,
_parse_requirements,
)
from kedro_mlflow.utils import _parse_requirements


class MlflowPipelineHook:
Expand Down
2 changes: 0 additions & 2 deletions kedro_mlflow/io/mlflow_dataset.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from copy import deepcopy
from pathlib import PurePath
from typing import Any, Dict, Union

import mlflow
Expand Down
2 changes: 1 addition & 1 deletion kedro_mlflow/mlflow/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from .kedro_pipeline_model import KedroPipelineModel
from .kedro_pipeline_model import KedroPipelineModel # noqa: F401
2 changes: 0 additions & 2 deletions kedro_mlflow/mlflow/kedro_pipeline_model.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from copy import deepcopy
from typing import Any, Callable, Dict, Union

from kedro.io import DataCatalog, MemoryDataSet
from kedro.pipeline import Pipeline
from kedro.runner import SequentialRunner
from mlflow.pyfunc import PythonModel

Expand Down
2 changes: 0 additions & 2 deletions kedro_mlflow/utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import os
import re
from pathlib import Path
from typing import Dict, List, Union
from urllib.parse import urlparse

import yaml
from kedro import __version__ as KEDRO_VERSION
Expand Down
2 changes: 0 additions & 2 deletions tests/io/test_mlflow_dataset.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import glob

import mlflow
import pandas as pd
import pytest
Expand Down

0 comments on commit 62ce816

Please sign in to comment.