Skip to content

Commit ccfe875

Browse files
committed
style: run ruff format to fix linting errors
1 parent 620c2b4 commit ccfe875

File tree

4 files changed

+14
-17
lines changed

4 files changed

+14
-17
lines changed

libs/deepagents-cli/deepagents_cli/agent.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,9 @@ def format_fetch_url_description(tool_call: dict) -> str:
215215
url = args.get("url", "unknown")
216216
timeout = args.get("timeout", 30)
217217

218-
return f"URL: {url}\nTimeout: {timeout}s\n\n⚠️ Will fetch and convert web content to markdown"
218+
return (
219+
f"URL: {url}\nTimeout: {timeout}s\n\n⚠️ Will fetch and convert web content to markdown"
220+
)
219221

220222
def format_task_description(tool_call: dict) -> str:
221223
"""Format task (subagent) tool call for approval prompt."""

libs/deepagents-cli/deepagents_cli/main.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ def parse_args():
9191
create_parser.add_argument("name", help="Name of the skill to create (e.g., web-research)")
9292

9393
# Skills info
94-
info_parser = skills_subparsers.add_parser("info", help="Show detailed information about a skill")
94+
info_parser = skills_subparsers.add_parser(
95+
"info", help="Show detailed information about a skill"
96+
)
9597
info_parser.add_argument("name", help="Name of the skill to show info for")
9698

9799
# Default interactive mode
@@ -236,7 +238,9 @@ def cli_main():
236238
show_skill_info(args.name)
237239
else:
238240
# No subcommand provided, show help
239-
console.print("[yellow]Please specify a skills subcommand: list, create, or info[/yellow]")
241+
console.print(
242+
"[yellow]Please specify a skills subcommand: list, create, or info[/yellow]"
243+
)
240244
console.print("\nExamples:")
241245
console.print(" deepagents skills list")
242246
console.print(" deepagents skills create web-research")

libs/deepagents-cli/deepagents_cli/skills/skills_commands.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def create_skill(skill_name: str):
7272
description: [Brief description of what this skill does]
7373
---
7474
75-
# {skill_name.title().replace('-', ' ')} Skill
75+
# {skill_name.title().replace("-", " ")} Skill
7676
7777
## Description
7878
@@ -138,9 +138,7 @@ def create_skill(skill_name: str):
138138
skill_md = skill_dir / "SKILL.md"
139139
skill_md.write_text(template)
140140

141-
console.print(
142-
f"✓ Skill '{skill_name}' created successfully!", style=COLORS["primary"]
143-
)
141+
console.print(f"✓ Skill '{skill_name}' created successfully!", style=COLORS["primary"])
144142
console.print(f"Location: {skill_dir}\n", style=COLORS["dim"])
145143
console.print(
146144
"[dim]Edit the SKILL.md file to customize:\n"
@@ -165,12 +163,8 @@ def show_skill_info(skill_name: str):
165163
skill = next((s for s in skills if s["name"] == skill_name), None)
166164

167165
if not skill:
168-
console.print(
169-
f"[bold red]Error:[/bold red] Skill '{skill_name}' not found."
170-
)
171-
console.print(
172-
f"\n[dim]Available skills:[/dim]", style=COLORS["dim"]
173-
)
166+
console.print(f"[bold red]Error:[/bold red] Skill '{skill_name}' not found.")
167+
console.print(f"\n[dim]Available skills:[/dim]", style=COLORS["dim"])
174168
for s in skills:
175169
console.print(f" - {s['name']}", style=COLORS["dim"])
176170
return

libs/deepagents-cli/deepagents_cli/skills/skills_middleware.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,7 @@ class SkillsMiddleware(AgentMiddleware):
106106
skills_backend = FilesystemBackend(root_dir=skills_dir, virtual_mode=True)
107107
108108
# Create composite backend with skills routing
109-
backend = CompositeBackend(
110-
default=FilesystemBackend(),
111-
routes={"/skills/": skills_backend}
112-
)
109+
backend = CompositeBackend(default=FilesystemBackend(), routes={"/skills/": skills_backend})
113110
114111
# Create middleware
115112
middleware = SkillsMiddleware(skills_dir=skills_dir, skills_path="/skills/")

0 commit comments

Comments
 (0)