Skip to content

Commit d9ca6d5

Browse files
committed
chore: reformated
1 parent e5f5bc8 commit d9ca6d5

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

AgentCrew/modules/a2a/task_store/redis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ async def list_task_ids(self) -> list:
136136
cursor = 0
137137
while True:
138138
cursor, keys = await r.scan(cursor, match=f"{prefix}*", count=100)
139-
task_ids.extend(k[len(prefix):] for k in keys)
139+
task_ids.extend(k[len(prefix) :] for k in keys)
140140
if cursor == 0:
141141
break
142142
return task_ids

AgentCrew/modules/chat/message/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from .base import Observable
2323

2424

25-
_AT_AGENT_RE = re.compile(r'@([\.\w-]+)')
25+
_AT_AGENT_RE = re.compile(r"@([\.\w-]+)")
2626

2727

2828
def _resolve_at_mention(user_input: str, agent_manager) -> tuple:

AgentCrew/modules/console/completers.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,7 @@ def get_completions(self, document, complete_event):
131131

132132
for agent_name in self.agent_manager.agents:
133133
if agent_name.lower().startswith(word_after_at.lower()):
134-
desc = getattr(
135-
self.agent_manager.agents[agent_name], "description", ""
136-
)
134+
desc = getattr(self.agent_manager.agents[agent_name], "description", "")
137135
yield Completion(
138136
agent_name,
139137
start_position=-len(word_after_at),
@@ -159,7 +157,11 @@ def get_completions(self, document, complete_event):
159157

160158
text_before = document.text_before_cursor
161159
at_idx = text_before.rfind("@")
162-
if at_idx != -1 and " " not in text_before[at_idx + 1:] and not text.startswith("/"):
160+
if (
161+
at_idx != -1
162+
and " " not in text_before[at_idx + 1 :]
163+
and not text.startswith("/")
164+
):
163165
yield from self.at_agent_completer.get_completions(document, complete_event)
164166
return
165167

AgentCrew/modules/gui/components/input_components.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,7 @@ def _setup_file_completion(self):
132132
Qt.CaseSensitivity.CaseInsensitive
133133
)
134134
self.chat_window.at_agent_completer.setWidget(self.chat_window.message_input)
135-
self.chat_window.at_agent_completer.activated.connect(
136-
self.insert_at_completion
137-
)
135+
self.chat_window.at_agent_completer.activated.connect(self.insert_at_completion)
138136

139137
self.chat_window.message_input.textChanged.connect(
140138
self.check_for_path_completion
@@ -155,7 +153,7 @@ def check_for_path_completion(self):
155153

156154
# Check for @agent mention first (only when actively typing after @)
157155
at_idx = text_to_cursor.rfind("@")
158-
has_active_at = at_idx != -1 and " " not in text_to_cursor[at_idx + 1:]
156+
has_active_at = at_idx != -1 and " " not in text_to_cursor[at_idx + 1 :]
159157
if has_active_at and not text_to_cursor.startswith("/"):
160158
self._check_for_at_completion(text_to_cursor)
161159
return

0 commit comments

Comments
 (0)