Skip to content

Commit 4d9eefe

Browse files
authored
fix: bump lockfiles (#31923)
* bump lockfiles after upgrading ruff * resolve resulting linting fixes
1 parent e7f1cee commit 4d9eefe

File tree

20 files changed

+5715
-5703
lines changed

20 files changed

+5715
-5703
lines changed

libs/partners/chroma/langchain_chroma/vectorstores.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def __init__(
288288
collection_metadata: Optional[dict] = None,
289289
client: Optional[chromadb.ClientAPI] = None,
290290
relevance_score_fn: Optional[Callable[[float], float]] = None,
291-
create_collection_if_not_exists: Optional[bool] = True, # noqa: FBT002
291+
create_collection_if_not_exists: Optional[bool] = True, # noqa: FBT001, FBT002
292292
) -> None:
293293
"""Initialize with a Chroma client.
294294
@@ -1186,16 +1186,16 @@ def from_texts(
11861186
else:
11871187
ids = [id_ if id_ is not None else str(uuid.uuid4()) for id_ in ids]
11881188
if hasattr(
1189-
chroma_collection._client, # noqa: SLF001
1189+
chroma_collection._client,
11901190
"get_max_batch_size",
11911191
) or hasattr( # for Chroma 0.5.1 and above
1192-
chroma_collection._client, # noqa: SLF001
1192+
chroma_collection._client,
11931193
"max_batch_size",
11941194
): # for Chroma 0.4.10 and above
11951195
from chromadb.utils.batch_utils import create_batches
11961196

11971197
for batch in create_batches(
1198-
api=chroma_collection._client, # noqa: SLF001
1198+
api=chroma_collection._client,
11991199
ids=ids,
12001200
metadatas=metadatas, # type: ignore[arg-type]
12011201
documents=texts,

libs/partners/chroma/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ ignore = [
108108
"D105", # Missing docstring in magic method
109109
"D107", # Missing docstring in __init__
110110
"UP007", # pyupgrade: non-pep604-annotation-union
111+
"UP045", # pyupgrade: non-pep604-annotation-optional
112+
"COM812", # Messes with the formatter
111113
]
112114
unfixable = ["B028"] # People should intentionally tune the stacklevel
113115

libs/partners/chroma/uv.lock

Lines changed: 1771 additions & 1770 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/partners/deepseek/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ ignore = [
9494
"D105", # Missing docstring in magic method
9595
"D107", # Missing docstring in __init__
9696
"UP007", # pyupgrade: non-pep604-annotation-union
97+
"UP045", # pyupgrade: non-pep604-annotation-optional
9798
]
9899
unfixable = ["B028"] # People should intentionally tune the stacklevel
99100

libs/partners/deepseek/uv.lock

Lines changed: 1300 additions & 1299 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/partners/exa/langchain_exa/tools.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,19 @@ def _run(
7676
self,
7777
query: str,
7878
num_results: int = 10,
79-
text_contents_options: Optional[
79+
text_contents_options: Optional[ # noqa: FBT001
8080
Union[TextContentsOptions, dict[str, Any], bool]
8181
] = None,
82-
highlights: Optional[Union[HighlightsContentsOptions, bool]] = None,
82+
highlights: Optional[Union[HighlightsContentsOptions, bool]] = None, # noqa: FBT001
8383
include_domains: Optional[list[str]] = None,
8484
exclude_domains: Optional[list[str]] = None,
8585
start_crawl_date: Optional[str] = None,
8686
end_crawl_date: Optional[str] = None,
8787
start_published_date: Optional[str] = None,
8888
end_published_date: Optional[str] = None,
89-
use_autoprompt: Optional[bool] = None,
89+
use_autoprompt: Optional[bool] = None, # noqa: FBT001
9090
livecrawl: Optional[Literal["always", "fallback", "never"]] = None,
91-
summary: Optional[Union[bool, dict[str, str]]] = None,
91+
summary: Optional[Union[bool, dict[str, str]]] = None, # noqa: FBT001
9292
type: Optional[Literal["neural", "keyword", "auto"]] = None, # noqa: A002
9393
run_manager: Optional[CallbackManagerForToolRun] = None,
9494
) -> Union[list[dict], str]:
@@ -157,20 +157,20 @@ def _run(
157157
self,
158158
url: str,
159159
num_results: int = 10,
160-
text_contents_options: Optional[
160+
text_contents_options: Optional[ # noqa: FBT001
161161
Union[TextContentsOptions, dict[str, Any], bool]
162162
] = None,
163-
highlights: Optional[Union[HighlightsContentsOptions, bool]] = None,
163+
highlights: Optional[Union[HighlightsContentsOptions, bool]] = None, # noqa: FBT001
164164
include_domains: Optional[list[str]] = None,
165165
exclude_domains: Optional[list[str]] = None,
166166
start_crawl_date: Optional[str] = None,
167167
end_crawl_date: Optional[str] = None,
168168
start_published_date: Optional[str] = None,
169169
end_published_date: Optional[str] = None,
170-
exclude_source_domain: Optional[bool] = None,
170+
exclude_source_domain: Optional[bool] = None, # noqa: FBT001
171171
category: Optional[str] = None,
172172
livecrawl: Optional[Literal["always", "fallback", "never"]] = None,
173-
summary: Optional[Union[bool, dict[str, str]]] = None,
173+
summary: Optional[Union[bool, dict[str, str]]] = None, # noqa: FBT001
174174
run_manager: Optional[CallbackManagerForToolRun] = None,
175175
) -> Union[list[dict], str]:
176176
"""Use the tool.

libs/partners/exa/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ ignore = [
9999
"RUF012", # Doesn't play well with Pydantic
100100
"SLF001", # Private member access
101101
"UP007", # pyupgrade: non-pep604-annotation-union
102+
"UP045", # pyupgrade: non-pep604-annotation-optional
102103
]
103104
unfixable = ["B028"] # People should intentionally tune the stacklevel
104105

0 commit comments

Comments
 (0)