Skip to content

Commit 5c6936f

Browse files
author
Your Name
committed
cli-39: fixed linting
1 parent 3929bfb commit 5c6936f

4 files changed

Lines changed: 16 additions & 9 deletions

File tree

cecli/coders/base_coder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1597,7 +1597,7 @@ async def output_task(self, preproc):
15971597
self.io.output_task = asyncio.create_task(self.generate(user_message, preproc))
15981598

15991599
# Start spinner for output task
1600-
self.io.start_spinner("Processing...", coder_uuid=getattr(self, 'uuid', None))
1600+
self.io.start_spinner("Processing...", coder_uuid=getattr(self, "uuid", None))
16011601
await self.io.recreate_input()
16021602

16031603
# Monitor output task
@@ -2365,7 +2365,7 @@ async def format_in_executor():
23652365
if not self.tui:
23662366
spinner_text += f" • ${self.format_cost(self.total_cost)} session"
23672367

2368-
self.io.start_spinner(spinner_text, coder_uuid=getattr(self, 'uuid', None))
2368+
self.io.start_spinner(spinner_text, coder_uuid=getattr(self, "uuid", None))
23692369
if self.stream:
23702370
self.mdstream = True
23712371
else:
@@ -2452,7 +2452,7 @@ async def format_in_executor():
24522452
self.mdstream = None
24532453

24542454
# Ensure any waiting spinner is stopped
2455-
self.io.start_spinner("Processing Answer...", coder_uuid=getattr(self, 'uuid', None))
2455+
self.io.start_spinner("Processing Answer...", coder_uuid=getattr(self, "uuid", None))
24562456
self.remove_reasoning_content()
24572457
self.multi_response_content = ""
24582458

cecli/tui/app.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,6 @@ def handle_output_message(self, msg):
564564
else:
565565
self._switch_to_container(target_uuid)
566566

567-
568567
def _resolve_agent_name(self, coder_uuid: str | None) -> str | None:
569568
"""Resolve an agent display name from a coder_uuid.
570569
@@ -590,8 +589,7 @@ def _resolve_agent_name(self, coder_uuid: str | None) -> str | None:
590589
if str(info.coder.uuid) == coder_uuid:
591590
# Check for duplicate names among sub-agents
592591
name_count = sum(
593-
1 for i in agent_service.sub_agents.values()
594-
if i.name == info.name
592+
1 for i in agent_service.sub_agents.values() if i.name == info.name
595593
)
596594
if name_count > 1:
597595
# Disambiguate with first 3 UUID characters
@@ -602,6 +600,7 @@ def _resolve_agent_name(self, coder_uuid: str | None) -> str | None:
602600
# Agent service not available or coder not yet initialized
603601
pass
604602
return None
603+
605604
def add_output(self, text, task_id=None):
606605
"""Add output to the output container."""
607606
output_container = self.query_one("#output", OutputContainer)
@@ -826,15 +825,18 @@ def on_input_area_submit(self, message: InputArea.Submit):
826825
coder = self.worker.coder
827826
# Determine which coder is in the foreground for input routing
828827
foreground_coder = AgentService.get_instance(coder).foreground_coder
829-
coder_uuid = str(foreground_coder.uuid) if foreground_coder and hasattr(foreground_coder, "uuid") else None
828+
coder_uuid = (
829+
str(foreground_coder.uuid)
830+
if foreground_coder and hasattr(foreground_coder, "uuid")
831+
else None
832+
)
830833
agent_name = self._resolve_agent_name(coder_uuid)
831834

832835
footer.start_spinner("Processing...", agent_name=agent_name or "")
833836

834837
if coder:
835838
coder.io.start_spinner("Processing...", coder_uuid=coder_uuid)
836839

837-
838840
if coder and is_active(getattr(coder.io, "output_task", None)):
839841
from cecli.helpers.conversation import ConversationService, MessageTag
840842

cecli/tui/widgets/footer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ def stop_spinner(self):
210210
self.spinner_text = ""
211211
self.agent_name = ""
212212
self.refresh()
213+
213214
def _has_running_sub_agent(self) -> bool:
214215
"""Check if any agent is currently generating output."""
215216
try:

cecli/tui/widgets/status_bar.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ def __init__(self, **kwargs):
134134
self._default = "y"
135135
self._explicit_yes_required = False
136136
self._timer = None
137+
137138
def compose(self) -> ComposeResult:
138139
"""Create empty container - content added dynamically."""
139140
yield Horizontal(classes="status-content")
@@ -171,7 +172,10 @@ def _rebuild_content(self) -> None:
171172
hints.mount(Static("\\[d]on't ask again", classes="hint hint-never"))
172173

173174
def show_notification(
174-
self, text: str, severity: str = "info", timeout: float | None = 3.0,
175+
self,
176+
text: str,
177+
severity: str = "info",
178+
timeout: float | None = 3.0,
175179
agent_name: str | None = None,
176180
) -> None:
177181
"""Show a transient notification message.

0 commit comments

Comments
 (0)