chore: apply ruff E501 line-too-long linter rule (#8275)

Co-authored-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
Bowen Liang
2024-09-12 14:00:36 +08:00
committed by GitHub
parent 56c90e212a
commit c69f5b07ba
85 changed files with 459 additions and 324 deletions

View File

@@ -114,7 +114,8 @@ class GetWorksheetFieldsTool(BuiltinTool):
}
fields.append(field)
fields_list.append(
f"|{field['id']}|{field['name']}|{field['type']}|{field['typeId']}|{field['description']}|{field['options'] if field['options'] else ''}|"
f"|{field['id']}|{field['name']}|{field['type']}|{field['typeId']}|{field['description']}"
f"|{field['options'] if field['options'] else ''}|"
)
fields.append(

View File

@@ -112,7 +112,10 @@ class ListWorksheetRecordsTool(BuiltinTool):
else:
result_text = f"Found {result['total']} rows in worksheet \"{worksheet_name}\"."
if result["total"] > 0:
result_text += f" The following are {result['total'] if result['total'] < limit else limit} pieces of data presented in a table format:\n\n{table_header}"
result_text += (
f" The following are {result['total'] if result['total'] < limit else limit}"
f" pieces of data presented in a table format:\n\n{table_header}"
)
for row in rows:
result_values = []
for f in fields: