Skip to content

Commit

Permalink
fix(sdk): fix lint error with isort.
Browse files Browse the repository at this point in the history
Signed-off-by: Electronic-Waste <[email protected]>
  • Loading branch information
Electronic-Waste committed Aug 22, 2024
1 parent ff5031a commit 74eabaa
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 16 deletions.
3 changes: 1 addition & 2 deletions sdk/python/v1beta1/kubeflow/katib/api/katib_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@

import grpc
import kubeflow.katib.katib_api_pb2 as katib_api_pb2
import kubeflow.katib.katib_api_pb2_grpc as katib_api_pb2_grpc
from kubeflow.katib import models
from kubeflow.katib.api_client import ApiClient
from kubeflow.katib.constants import constants
import kubeflow.katib.katib_api_pb2 as katib_api_pb2
import kubeflow.katib.katib_api_pb2_grpc as katib_api_pb2_grpc
from kubeflow.katib.utils import utils
from kubernetes import client, config

Expand Down
18 changes: 6 additions & 12 deletions sdk/python/v1beta1/kubeflow/katib/api/katib_client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,14 @@
from typing import List, Optional
from unittest.mock import Mock, patch

import kubeflow.katib.katib_api_pb2 as katib_api_pb2
import pytest
from kubeflow.katib import (
KatibClient,
V1beta1AlgorithmSpec,
V1beta1Experiment,
V1beta1ExperimentSpec,
V1beta1FeasibleSpace,
V1beta1ObjectiveSpec,
V1beta1ParameterSpec,
V1beta1TrialParameterSpec,
V1beta1TrialTemplate,
)
from kubeflow.katib import (KatibClient, V1beta1AlgorithmSpec,
V1beta1Experiment, V1beta1ExperimentSpec,
V1beta1FeasibleSpace, V1beta1ObjectiveSpec,
V1beta1ParameterSpec, V1beta1TrialParameterSpec,
V1beta1TrialTemplate)
from kubeflow.katib.constants import constants
import kubeflow.katib.katib_api_pb2 as katib_api_pb2
from kubernetes.client import V1ObjectMeta

TEST_RESULT_SUCCESS = "success"
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/v1beta1/kubeflow/katib/api/report_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
from typing import Any, Dict

import grpc
from kubeflow.katib.constants import constants
import kubeflow.katib.katib_api_pb2 as katib_api_pb2
import kubeflow.katib.katib_api_pb2_grpc as katib_api_pb2_grpc
from kubeflow.katib.constants import constants
from kubeflow.katib.utils import utils


Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from unittest.mock import patch

import pytest
from kubeflow.katib import report_metrics
from kubeflow.katib.constants import constants
import pytest

TEST_RESULT_SUCCESS = "success"
ENV_VARIABLE_EMPTY = True
Expand Down

0 comments on commit 74eabaa

Please sign in to comment.