update makefile and remove empty test file
This commit is contained in:
parent
e7e11dc068
commit
d8e2f73d2d
23
Makefile
23
Makefile
@ -2,18 +2,27 @@
|
|||||||
|
|
||||||
help:
|
help:
|
||||||
@echo "Available commands:"
|
@echo "Available commands:"
|
||||||
@echo " install Install dependencies"
|
@echo " install Install dependencies"
|
||||||
@echo " test Run tests"
|
@echo " test Run tests"
|
||||||
@echo " lint Run linting"
|
@echo " test <file> Run specific test file"
|
||||||
@echo " format Format code"
|
@echo " lint Run linting"
|
||||||
@echo " clean Clean build artifacts"
|
@echo " format Format code"
|
||||||
@echo " build Build package"
|
@echo " clean Clean build artifacts"
|
||||||
|
@echo " build Build package"
|
||||||
|
@echo " run Start the KiCad MCP server"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
uv sync --group dev
|
uv sync --group dev
|
||||||
|
|
||||||
test:
|
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:
|
lint:
|
||||||
uv run ruff check kicad_mcp/ tests/
|
uv run ruff check kicad_mcp/ tests/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user