File tree Expand file tree Collapse file tree 2 files changed +16
-7
lines changed
Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 22
33help :
44 @echo " Available commands:"
5- @echo " install Install dependencies"
6- @echo " test Run tests"
7- @echo " lint Run linting"
8- @echo " format Format code"
9- @echo " clean Clean build artifacts"
10- @echo " build Build package"
5+ @echo " install Install dependencies"
6+ @echo " test Run tests"
7+ @echo " test <file> Run specific test file"
8+ @echo " lint Run linting"
9+ @echo " format Format code"
10+ @echo " clean Clean build artifacts"
11+ @echo " build Build package"
12+ @echo " run Start the KiCad MCP server"
1113
1214install :
1315 uv sync --group dev
1416
1517test :
16- uv run python -m pytest tests/ -v
18+ # Collect extra args; if none, use tests/
19+ @files=" $( filter-out $@ ,$( MAKECMDGOALS) ) " ; \
20+ if [ -z " $$ files" ]; then files=" tests/" ; fi ; \
21+ uv run pytest $$ files -v
22+
23+ # Prevent “No rule to make target …” errors for the extra args
24+ % ::
25+ @:
1726
1827lint :
1928 uv run ruff check kicad_mcp/ tests/
You can’t perform that action at this time.
0 commit comments