chore: fix indention violations by applying E111 to E117 ruff rules (#4925)

This commit is contained in:
Bowen Liang
2024-06-05 14:05:15 +08:00
committed by GitHub
parent 6b6afb7708
commit f32b440c4a
14 changed files with 73 additions and 61 deletions

View File

@@ -68,7 +68,7 @@ class ArxivAPIWrapper(BaseModel):
Args:
query: a plaintext search query
""" # noqa: E501
"""
try:
results = self.arxiv_search( # type: ignore
query[: self.ARXIV_MAX_QUERY_LENGTH], max_results=self.top_k_results

View File

@@ -121,4 +121,5 @@ class SearXNGSearchTool(BuiltinTool):
query=query,
search_type=search_type,
result_type=result_type,
topK=num_results)
topK=num_results
)

View File

@@ -30,7 +30,7 @@ class TwilioAPIWrapper(BaseModel):
Twilio also work here. You cannot, for example, spoof messages from a private
cell phone number. If you are using `messaging_service_sid`, this parameter
must be empty.
""" # noqa: E501
"""
@validator("client", pre=True, always=True)
def set_validator(cls, values: dict) -> dict:
@@ -60,7 +60,7 @@ class TwilioAPIWrapper(BaseModel):
SMS/MMS or
[Channel user address](https://www.twilio.com/docs/sms/channels#channel-addresses)
for other 3rd-party channels.
""" # noqa: E501
"""
message = self.client.messages.create(to, from_=self.from_number, body=body)
return message.sid