From d8e2f73d2d830876a2ecd3b5b6bc2cc91239fc80 Mon Sep 17 00:00:00 2001 From: Lama Date: Tue, 22 Jul 2025 21:45:06 -0700 Subject: [PATCH] update makefile and remove empty test file --- Makefile | 23 ++++++++++++++++------- tests/test_tools.py | 0 2 files changed, 16 insertions(+), 7 deletions(-) delete mode 100644 tests/test_tools.py 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