update makefile and remove empty test file
This commit is contained in:
parent
e7e11dc068
commit
d8e2f73d2d
11
Makefile
11
Makefile
@ -4,16 +4,25 @@ help:
|
||||
@echo "Available commands:"
|
||||
@echo " install Install dependencies"
|
||||
@echo " test Run tests"
|
||||
@echo " test <file> 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/
|
||||
|
Loading…
x
Reference in New Issue
Block a user