Skip to content

Commit 585fe72

Browse files
committed
lint
1 parent 3f6c1e1 commit 585fe72

File tree

4 files changed

+48
-34
lines changed

4 files changed

+48
-34
lines changed

sql/util/generate_chart_markup.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import re
22
import os
3-
from googleapiclient.discovery import build
4-
import google.auth
3+
from googleapiclient.discovery import build # pylint: disable=import-error
4+
import google.auth # pylint: disable=import-error
55

66
# Configuration
77
SPREADSHEET_ID = '1Svyw40Th7VbigX6lpR1lb1WXwTUVKZWrK7O2YELrml4'
@@ -42,7 +42,7 @@ def generate_figure_markup(spreadsheet_id, sql_dir):
4242
sheet_name = sheet['properties']['title']
4343
sheet_id = sheet['properties']['sheetId']
4444
charts = sheet.get('charts', [])
45-
45+
4646
sql_file = sql_map.get(sheet_name)
4747
if not sql_file:
4848
# Try to match case-insensitively or show warning
@@ -57,13 +57,13 @@ def generate_figure_markup(spreadsheet_id, sql_dir):
5757

5858
# Construct markup
5959
markup = f"""{{{{ figure_markup(
60-
image="{image_name}",
61-
caption="{title}",
62-
description="",
63-
chart_url="https://docs.google.com/spreadsheets/d/e/{PUBCHART_ID}/pubchart?oid={chart_id}&format=interactive",
64-
sheets_gid="{sheet_id}",
65-
sql_file="{sql_file}"
66-
)
60+
image="{image_name}",
61+
caption="{title}",
62+
description="",
63+
chart_url="https://docs.google.com/spreadsheets/d/e/{PUBCHART_ID}/pubchart?oid={chart_id}&format=interactive",
64+
sheets_gid="{sheet_id}",
65+
sql_file="{sql_file}"
66+
)
6767
}}}}"""
6868
print(markup)
6969
print()

0 commit comments

Comments
 (0)