chore(lint): fix quotes for f-string formatting by bumping ruff to 0.9.x (#12702)

This commit is contained in:
Bowen Liang 2025-01-21 10:12:29 +08:00 committed by GitHub
commit 166221d784
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
46 changed files with 120 additions and 131 deletions

View file

@ -84,9 +84,9 @@ class ApiTool(Tool):
if "api_key_header_prefix" in credentials:
api_key_header_prefix = credentials["api_key_header_prefix"]
if api_key_header_prefix == "basic" and credentials["api_key_value"]:
credentials["api_key_value"] = f'Basic {credentials["api_key_value"]}'
credentials["api_key_value"] = f"Basic {credentials['api_key_value']}"
elif api_key_header_prefix == "bearer" and credentials["api_key_value"]:
credentials["api_key_value"] = f'Bearer {credentials["api_key_value"]}'
credentials["api_key_value"] = f"Bearer {credentials['api_key_value']}"
elif api_key_header_prefix == "custom":
pass