batterymhm / Makefile
williamTLmiller's picture
Make it a full tech repo: packaging, CI, docs, examples, community files
4671c68 verified
Raw
History Blame Contribute Delete
712 Bytes
# BatteryMHM — common developer commands
.PHONY: help install dev test lint format demo clean build
help:
@echo "install - install the package"
@echo "dev - install with dev extras (pytest, ruff, xgboost)"
@echo "test - run the test suite"
@echo "lint - run ruff"
@echo "demo - run the offline demonstration"
@echo "build - build sdist + wheel"
@echo "clean - remove build/cache artifacts"
install:
pip install .
dev:
pip install -e ".[dev]"
test:
pytest -q
lint:
ruff check .
format:
ruff check --fix .
demo:
python demo.py
build:
python -m build
clean:
rm -rf build dist *.egg-info .pytest_cache .ruff_cache
find . -type d -name __pycache__ -exec rm -rf {} +