Skip to content

Commit ca290df

Browse files
committed
Fix ruff issues in chart code
1 parent 23e4b4d commit ca290df

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

examples/chart_example.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def main():
8888
)
8989

9090
vega_spec = chart_to_vega(chart)
91-
print(f"Chart type: Area")
91+
print("Chart type: Area")
9292
print(f"Data points: {len(data)}")
9393
print(f"Vega spec keys: {list(vega_spec.keys())}")
9494
print()
@@ -113,7 +113,7 @@ def main():
113113
)
114114

115115
vega_spec = chart_to_vega(chart)
116-
print(f"Chart type: Bar")
116+
print("Chart type: Bar")
117117
print(f"Data points: {len(data)}")
118118
print(f"Vega spec keys: {list(vega_spec.keys())}")
119119
print()
@@ -140,9 +140,9 @@ def main():
140140
)
141141

142142
vega_spec = chart_to_vega(chart)
143-
print(f"Chart type: Line (multiple metrics)")
143+
print("Chart type: Line (multiple metrics)")
144144
print(f"Data points: {len(data)}")
145-
print(f"Metrics: revenue, order_count")
145+
print("Metrics: revenue, order_count")
146146
print(f"Vega spec keys: {list(vega_spec.keys())}")
147147
print()
148148

sidemantic/mcp_server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,8 @@ def create_chart(
392392
- metrics: ["orders.total_revenue", "orders.order_count"]
393393
- chart_type: "line"
394394
"""
395-
from sidemantic.charts import chart_to_base64_png, chart_to_vega, create_chart as make_chart
395+
from sidemantic.charts import chart_to_base64_png, chart_to_vega
396+
from sidemantic.charts import create_chart as make_chart
396397

397398
layer = get_layer()
398399

0 commit comments

Comments
 (0)