Skip to content

Commit ee66f65

Browse files
committed
Fix Python Formatting
1 parent 2830854 commit ee66f65

10 files changed

Lines changed: 22 additions & 21 deletions

File tree

sdk/python/feast/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
import click
2020
import pkg_resources
21-
2221
import yaml
22+
2323
from feast.client import Client
2424
from feast.config import Config
2525
from feast.feature_set import FeatureSet

sdk/python/feast/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
from typing import Dict, List, Optional, Tuple, Union
2424

2525
import grpc
26-
2726
import pandas as pd
2827
import pyarrow as pa
2928
import pyarrow.parquet as pq
29+
3030
from feast.config import Config
3131
from feast.constants import (
3232
CONFIG_CORE_SECURE_KEY,

sdk/python/feast/feature_set.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@
1616
from collections import OrderedDict
1717
from typing import Dict, List, Optional
1818

19+
import pandas as pd
20+
import pyarrow as pa
1921
from google.protobuf import json_format
2022
from google.protobuf.duration_pb2 import Duration
2123
from google.protobuf.json_format import MessageToJson
24+
from pandas.api.types import is_datetime64_ns_dtype
25+
from pyarrow.lib import TimestampType
2226

23-
import pandas as pd
24-
import pyarrow as pa
2527
from feast.core.FeatureSet_pb2 import FeatureSet as FeatureSetProto
2628
from feast.core.FeatureSet_pb2 import FeatureSetMeta as FeatureSetMetaProto
2729
from feast.core.FeatureSet_pb2 import FeatureSetSpec as FeatureSetSpecProto
@@ -34,8 +36,6 @@
3436
pa_to_feast_value_type,
3537
python_type_to_feast_value_type,
3638
)
37-
from pandas.api.types import is_datetime64_ns_dtype
38-
from pyarrow.lib import TimestampType
3939

4040

4141
class FeatureSet:

sdk/python/feast/job.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
from datetime import datetime, timedelta
44
from urllib.parse import urlparse
55

6-
from google.cloud import storage
7-
86
import fastavro
97
import pandas as pd
8+
from google.cloud import storage
9+
1010
from feast.serving.ServingService_pb2 import (
1111
DATA_FORMAT_AVRO,
1212
JOB_STATUS_DONE,

sdk/python/feast/loaders/file.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@
2121
from typing import List, Optional, Tuple, Union
2222
from urllib.parse import ParseResult, urlparse
2323

24-
from google.cloud import storage
25-
2624
import pandas as pd
25+
from google.cloud import storage
2726
from pandavro import to_avro
2827

2928

sdk/python/feast/loaders/ingest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import pandas as pd
77
import pyarrow.parquet as pq
8+
89
from feast.constants import DATETIME_COLUMN
910
from feast.feature_set import FeatureSet
1011
from feast.type_map import (

sdk/python/feast/type_map.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
from datetime import datetime, timezone
1616
from typing import List
1717

18-
from google.protobuf.timestamp_pb2 import Timestamp
19-
2018
import numpy as np
2119
import pandas as pd
2220
import pyarrow as pa
21+
from google.protobuf.timestamp_pb2 import Timestamp
22+
from pyarrow.lib import TimestampType
23+
2324
from feast.constants import DATETIME_COLUMN
2425
from feast.types import FeatureRow_pb2 as FeatureRowProto
2526
from feast.types import Field_pb2 as FieldProto
@@ -35,7 +36,6 @@
3536
from feast.types.Value_pb2 import Value as ProtoValue
3637
from feast.types.Value_pb2 import ValueType as ProtoValueType
3738
from feast.value_type import ValueType
38-
from pyarrow.lib import TimestampType
3939

4040

4141
def python_type_to_feast_value_type(

sdk/python/tests/test_client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,16 @@
2020
from unittest import mock
2121

2222
import grpc
23+
import pandas as pd
24+
import pytest
2325
from google.protobuf.duration_pb2 import Duration
26+
from mock import MagicMock, patch
27+
from pandavro import to_avro
28+
from pytz import timezone
2429

2530
import dataframes
2631
import feast.core.CoreService_pb2_grpc as Core
2732
import feast.serving.ServingService_pb2_grpc as Serving
28-
import pandas as pd
29-
import pytest
3033
from feast.client import Client
3134
from feast.core.CoreService_pb2 import (
3235
GetFeastCoreVersionResponse,
@@ -58,9 +61,6 @@
5861
from feast.value_type import ValueType
5962
from feast_core_server import CoreServicer
6063
from feast_serving_server import ServingServicer
61-
from mock import MagicMock, patch
62-
from pandavro import to_avro
63-
from pytz import timezone
6464

6565
CORE_URL = "core.feast.example.com"
6666
SERVING_URL = "serving.example.com"

sdk/python/tests/test_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from tempfile import mkstemp
1717

1818
import pytest
19+
1920
from feast.config import Config
2021

2122

sdk/python/tests/test_feature_set.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
from datetime import datetime
1616

1717
import grpc
18-
19-
import dataframes
20-
import feast.core.CoreService_pb2_grpc as Core
2118
import pandas as pd
2219
import pytest
2320
import pytz
21+
22+
import dataframes
23+
import feast.core.CoreService_pb2_grpc as Core
2424
from feast.client import Client
2525
from feast.entity import Entity
2626
from feast.feature_set import Feature, FeatureSet

0 commit comments

Comments
 (0)