SecretSanta / Makefile
tschm's picture
remove obsolete gitattributes
d0bc7bd
raw
history blame
974 Bytes
.DEFAULT_GOAL := help
VENV :=.venv
folder = notebooks
.PHONY: venv
venv: ## Create the virtual environment
python -m venv ${VENV}
.PHONY: install
install: venv ## Install a virtual environment
${VENV}/bin/pip install --upgrade pip
${VENV}/bin/pip install -r requirements.txt
.PHONY: fmt
fmt: venv ## Run autoformatting and linting
${VENV}/bin/pip install pre-commit
${VENV}/bin/pre-commit install
${VENV}/bin/pre-commit run --all-files
.PHONY: clean
clean: ## Clean up caches and build artifacts
@git clean -X -d -f
.PHONY: help
help: ## Display this help screen
@echo -e "\033[1mAvailable commands:\033[0m"
@grep -E '^[a-z.A-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-18s\033[0m %s\n", $$1, $$2}' | sort
.PHONY: marimo
marimo: install ## Start jupyter lab
${VENV}/bin/pip install marimo
${VENV}/bin/marimo edit app.py
.PHONY: app
app: install
${VENV}/bin/pip install marimo
${VENV}/bin/marimo run app.py