Skip to content

Commit d8e2f73

Browse files
committed
update makefile and remove empty test file
1 parent e7e11dc commit d8e2f73

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

Makefile

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,27 @@
22

33
help:
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

1214
install:
1315
uv sync --group dev
1416

1517
test:
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

1827
lint:
1928
uv run ruff check kicad_mcp/ tests/

tests/test_tools.py

Whitespace-only changes.

0 commit comments

Comments
 (0)