Skip to content

Commit 3fb62f3

Browse files
committed
style: Format dbt files with ruff
Signed-off-by: yassinnouh21 <yassinnouh21@gmail.com>
1 parent 3f50ca2 commit 3fb62f3

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

sdk/python/feast/cli/dbt_import.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,9 @@ def list_command(
365365
click.echo(f"{Fore.CYAN}{model.name}{Style.RESET_ALL}{tags_str}")
366366
click.echo(f" Table: {model.full_table_name}")
367367
if model.description:
368-
desc = model.description[:80] + ("..." if len(model.description) > 80 else "")
368+
desc = model.description[:80] + (
369+
"..." if len(model.description) > 80 else ""
370+
)
369371
click.echo(f" Description: {desc}")
370372

371373
if show_columns and model.columns:

sdk/python/feast/dbt/mapper.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,16 @@ def map_dbt_type_to_feast_type(dbt_type: str) -> FeastType:
110110
element_type_str = normalized[6:-1].strip()
111111
element_type = map_dbt_type_to_feast_type(element_type_str)
112112
# Array only supports primitive types
113-
valid_array_types = {String, Int32, Int64, Float32, Float64, Bool, Bytes, UnixTimestamp}
113+
valid_array_types = {
114+
String,
115+
Int32,
116+
Int64,
117+
Float32,
118+
Float64,
119+
Bool,
120+
Bytes,
121+
UnixTimestamp,
122+
}
114123
if element_type in valid_array_types:
115124
return Array(element_type)
116125
return Array(String) # Fallback for complex nested types

0 commit comments

Comments
 (0)