feat: add Makefile for easy build and test
This commit is contained in:
27
Makefile
Normal file
27
Makefile
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
.PHONY: install test build clean help
|
||||||
|
|
||||||
|
install:
|
||||||
|
pip install -e ".[dev]"
|
||||||
|
|
||||||
|
test:
|
||||||
|
pytest tests/ -v
|
||||||
|
|
||||||
|
build:
|
||||||
|
python -m build
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf dist/ build/ .venv/
|
||||||
|
find . -type d -name __pycache__ -exec rm -rf {} +
|
||||||
|
find . -type f -name "*.pyc" -delete
|
||||||
|
|
||||||
|
help:
|
||||||
|
@echo "Available commands:"
|
||||||
|
@echo " make install - Install in development mode"
|
||||||
|
@echo " make test - Run tests"
|
||||||
|
@echo " make build - Build package"
|
||||||
|
@echo " make clean - Clean build artifacts"
|
||||||
|
@echo " make - Run tests (default)"
|
||||||
|
|
||||||
|
.DEFAULT_GOAL := help
|
||||||
|
|
||||||
|
test: test
|
||||||
Reference in New Issue
Block a user