Skip to content

Commit c886868

Browse files
authored
style(community): enable docstring code formatting (#1211)
1 parent 0d98d7a commit c886868

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

libs/community/langchain_google_community/geocoding.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -496,22 +496,18 @@ class GoogleGeocodingTool(BaseTool):
496496
include_bounds=True,
497497
include_navigation=True,
498498
include_metadata=True,
499-
language="en"
499+
language="en",
500500
)
501501
502502
Invoke directly:
503503
.. code-block:: python
504504
505-
result = tool.invoke({
506-
"query": "Eiffel Tower, Empire State Building"
507-
})
505+
result = tool.invoke({"query": "Eiffel Tower, Empire State Building"})
508506
509507
Invoke with agent:
510508
.. code-block:: python
511509
512-
agent.invoke({
513-
"input": "Find coordinates of Times Square and Central Park"
514-
})
510+
agent.invoke({"input": "Find coordinates of Times Square and Central Park"})
515511
516512
Returns:
517513
Tuple containing:

libs/community/langchain_google_community/places_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class GooglePlacesAPIWrapper(BaseModel):
3131
3232
3333
from langchain_community.utilities import GooglePlacesAPIWrapper
34+
3435
gplaceapi = GooglePlacesAPIWrapper()
3536
"""
3637

libs/community/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ dev = [
8989
[tool.ruff]
9090
fix = true
9191

92+
[tool.ruff.format]
93+
docstring-code-format = true
94+
9295
[tool.ruff.lint]
9396
select = [
9497
"E", # pycodestyle

0 commit comments

Comments
 (0)