diff --git a/Makefile b/Makefile index 7051bf3..fb803b1 100644 --- a/Makefile +++ b/Makefile @@ -2,18 +2,27 @@ help: @echo "Available commands:" - @echo " install Install dependencies" - @echo " test Run tests" - @echo " lint Run linting" - @echo " format Format code" - @echo " clean Clean build artifacts" - @echo " build Build package" + @echo " install Install dependencies" + @echo " test Run tests" + @echo " test Run specific test file" + @echo " lint Run linting" + @echo " format Format code" + @echo " clean Clean build artifacts" + @echo " build Build package" + @echo " run Start the KiCad MCP server" install: uv sync --group dev test: - uv run python -m pytest tests/ -v + # Collect extra args; if none, use tests/ + @files="$(filter-out $@,$(MAKECMDGOALS))"; \ + if [ -z "$$files" ]; then files="tests/"; fi; \ + uv run pytest $$files -v + +# Prevent “No rule to make target …” errors for the extra args +%:: + @: lint: uv run ruff check kicad_mcp/ tests/ diff --git a/tests/test_tools.py b/tests/test_tools.py deleted file mode 100644 index e69de29..0000000