
- Add GitHub Actions CI/CD workflow with multi-OS testing (Ubuntu, macOS) - Add pyproject.toml for modern Python packaging with hatchling - Add pre-commit hooks for code quality (ruff, mypy, trailing whitespace) - Add Makefile for common development tasks (install, test, lint, format, build) - Add run_tests.py script for comprehensive test execution - Update requirements.txt with development dependencies - Update .gitignore for modern Python tooling (uv, ruff, pytest) - Add KiCad-specific ignore patterns for backup files This establishes a robust development workflow with: - Automated testing on Python 3.10, 3.11, 3.12 - Code formatting and linting with ruff - Type checking with mypy - Coverage reporting with pytest-cov - Package building with uv 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
37 lines
718 B
Makefile
37 lines
718 B
Makefile
.PHONY: help install test lint format clean build
|
|
|
|
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"
|
|
|
|
install:
|
|
uv sync --group dev
|
|
|
|
test:
|
|
uv run python -m pytest tests/ -v
|
|
|
|
lint:
|
|
uv run ruff check kicad_mcp/ tests/
|
|
uv run mypy kicad_mcp/
|
|
|
|
format:
|
|
uv run ruff format kicad_mcp/ tests/
|
|
|
|
clean:
|
|
rm -rf dist/
|
|
rm -rf build/
|
|
rm -rf *.egg-info/
|
|
rm -rf .pytest_cache/
|
|
rm -rf htmlcov/
|
|
rm -f coverage.xml
|
|
find . -type d -name __pycache__ -delete
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
build:
|
|
uv build
|