Skip to content

Commit 1612b2f

Browse files
fix: remove unused builtins import, add Makefile clean target by dev-engineer
1 parent b92ecd1 commit 1612b2f

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Generated by Agent B — Lint & Type Scripts
2-
.PHONY: lint test format typecheck format-check
2+
.PHONY: lint test format typecheck format-check clean
33

44
lint:
55
ruff check src/ tests/
@@ -15,3 +15,7 @@ typecheck:
1515

1616
test:
1717
pytest -q
18+
19+
clean:
20+
rm -rf build/ dist/ *.egg-info/ .pytest_cache/ __pycache__/
21+
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true

src/devforge/cli.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""DevForge unified CLI entry point."""
22

3-
import builtins as _builtins
43
import subprocess
54
import sys
65
import typer
@@ -86,7 +85,7 @@ def install(
8685
):
8786
"""Install a DevForge tool."""
8887
if tool == "all":
89-
targets = _builtins.list(TOOLS.keys())
88+
targets = list(TOOLS.keys())
9089
extras = ",".join(TOOLS.keys())
9190
elif tool in TOOLS:
9291
targets = [tool]
@@ -119,7 +118,7 @@ def show_versions(
119118
console.print(f"[red]Unknown tool: {tool}[/red]")
120119
console.print(f"Available: {', '.join(TOOLS.keys())}")
121120
raise typer.Exit(code=1)
122-
targets = [tool] if tool else _builtins.list(TOOLS.keys())
121+
targets = [tool] if tool else list(TOOLS.keys())
123122

124123
for t in targets:
125124
info = TOOLS[t]

0 commit comments

Comments
 (0)