Skip to content

Commit 5686335

Browse files
style: ruff format (fix CI lint failure)
1 parent e83f366 commit 5686335

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/devforge/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def list_tools(
7777

7878
console.print(table)
7979
console.print(
80-
"\n[dim]Install:[/dim] [green]pip install \"git+https://github.com/Coding-Dev-Tools/devforge-cli.git[all]\"[/green]"
80+
'\n[dim]Install:[/dim] [green]pip install "git+https://github.com/Coding-Dev-Tools/devforge-cli.git[all]"[/green]'
8181
)
8282
console.print("[dim](devforge-tools is not on public PyPI — use the git+ form above.)[/dim]")
8383

@@ -163,7 +163,7 @@ def dispatch(ctx: typer.Context):
163163
if not _is_tool_installed(module_name):
164164
console.print(
165165
f"[red]Tool '{tool_name}' is not installed.[/red]\n"
166-
f"Run: [green]pip install \"git+https://github.com/Coding-Dev-Tools/devforge-cli.git\\[{tool_name}]\"[/green]",
166+
f'Run: [green]pip install "git+https://github.com/Coding-Dev-Tools/devforge-cli.git\\[{tool_name}]"[/green]',
167167
soft_wrap=True,
168168
)
169169
raise typer.Exit(code=1)

tests/test_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def test_dispatch_not_installed_shows_install_hint(self, _mock):
122122
result = runner.invoke(app, ["guard"])
123123
assert result.exit_code == 1
124124
assert "not installed" in result.stdout
125-
assert "pip install \"git+https://github.com/Coding-Dev-Tools/devforge-cli.git[guard]\"" in result.stdout
125+
assert 'pip install "git+https://github.com/Coding-Dev-Tools/devforge-cli.git[guard]"' in result.stdout
126126

127127
@mock.patch("devforge.cli._is_tool_installed", return_value=True)
128128
@mock.patch("devforge.cli.subprocess.run")
@@ -166,7 +166,7 @@ def test_dispatch_install_hint_escapes_extra_brackets(self, _mock):
166166
"""
167167
result = runner.invoke(app, ["guard"])
168168
assert result.exit_code == 1
169-
assert "pip install \"git+https://github.com/Coding-Dev-Tools/devforge-cli.git[guard]\"" in result.stdout
169+
assert 'pip install "git+https://github.com/Coding-Dev-Tools/devforge-cli.git[guard]"' in result.stdout
170170

171171

172172
class TestHelp:

0 commit comments

Comments
 (0)