Skip to content

Commit a260c21

Browse files
committed
ruff fixes
1 parent 60fcbe7 commit a260c21

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

graphrag/config/models/graph_rag_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ def _validate_update_index_output_base_dir(self) -> None:
225225
"""The basic search configuration."""
226226

227227
vector_store: dict[str, VectorStoreConfig] = Field(
228-
description="The vector store configuration.", default={"default": VectorStoreConfig()}
228+
description="The vector store configuration.",
229+
default={"default": VectorStoreConfig()},
229230
)
230231
"""The vector store configuration."""
231232

tests/unit/config/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,9 @@ def assert_vector_store_configs(
289289
):
290290
assert type(actual) is type(expected)
291291
assert len(actual) == len(expected)
292-
for (index_a, store_a), (index_e, store_e) in zip(actual.items(), expected.items(), strict=True):
292+
for (index_a, store_a), (index_e, store_e) in zip(
293+
actual.items(), expected.items(), strict=True
294+
):
293295
assert index_a == index_e
294296
assert store_a.type == store_e.type
295297
assert store_a.db_uri == store_e.db_uri
@@ -299,6 +301,7 @@ def assert_vector_store_configs(
299301
assert store_a.container_name == store_e.container_name
300302
assert store_a.overwrite == store_e.overwrite
301303

304+
302305
def assert_reporting_configs(
303306
actual: ReportingConfig, expected: ReportingConfig
304307
) -> None:

0 commit comments

Comments
 (0)