Skip to content

Commit 61974b3

Browse files
committed
align pre-commit black version with github action and black reformatted files
1 parent b7f73fb commit 61974b3

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 24.8.0
3+
rev: 25.1.0
44
hooks:
55
- id: black
66
name: Format Python code with black

knowledge_storm/collaborative_storm/modules/grounded_question_generation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
This module handles question generation within the Co-STORM framework, specifically designed to support the Moderator role.
33
4-
The Moderator generates insightful, thought-provoking questions that introduce new directions into the conversation.
4+
The Moderator generates insightful, thought-provoking questions that introduce new directions into the conversation.
55
By leveraging uncited or unused snippets of information retrieved during the discussion, the Moderator ensures the conversation remains dynamic and avoids repetitive or overly niche topics.
66
77
For more detailed information, refer to Section 3.5 of the Co-STORM paper: https://www.arxiv.org/pdf/2408.15232.

knowledge_storm/collaborative_storm/modules/warmstart_hierarchical_chat.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"""
22
Warm starts the Co-STORM system by conducting a background information search to establish a shared conceptual space with the user.
3-
4-
This stage functions as a mini-STORM, where multiple LLM agents are spawned with different perspectives to engage in multi-round conversations.
3+
4+
This stage functions as a mini-STORM, where multiple LLM agents are spawned with different perspectives to engage in multi-round conversations.
55
The knowledge base (represented as a mind map) is initialized using the information gathered during these exchanges.
66
7-
Additionally, the system generates a first draft of the report, which is then used to create a concise and engaging conversation.
7+
Additionally, the system generates a first draft of the report, which is then used to create a concise and engaging conversation.
88
The synthesized conversation is presented to the user to help them quickly catch up on the system's current knowledge about the topic.
99
"""
1010

knowledge_storm/storm_wiki/modules/storm_dataclass.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def __init__(self, conversations=List[Tuple[str, List[DialogueTurn]]]):
6464

6565
@staticmethod
6666
def construct_url_to_info(
67-
conversations: List[Tuple[str, List[DialogueTurn]]]
67+
conversations: List[Tuple[str, List[DialogueTurn]]],
6868
) -> Dict[str, Information]:
6969
url_to_info = {}
7070

@@ -81,7 +81,7 @@ def construct_url_to_info(
8181

8282
@staticmethod
8383
def construct_log_dict(
84-
conversations: List[Tuple[str, List[DialogueTurn]]]
84+
conversations: List[Tuple[str, List[DialogueTurn]]],
8585
) -> List[Dict[str, Union[str, Any]]]:
8686
conversation_log = []
8787
for persona, conv in conversations:

knowledge_storm/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def create_or_update_vector_store(
278278
"\uff0c", # Fullwidth comma
279279
"\u3001", # Ideographic comma
280280
" ",
281-
"\u200B", # Zero-width space
281+
"\u200b", # Zero-width space
282282
"",
283283
],
284284
)
@@ -666,7 +666,7 @@ def __init__(
666666
"\uff0c", # Fullwidth comma
667667
"\u3001", # Ideographic comma
668668
" ",
669-
"\u200B", # Zero-width space
669+
"\u200b", # Zero-width space
670670
"",
671671
],
672672
)

0 commit comments

Comments
 (0)