28 lines
772 B
Makefile
28 lines
772 B
Makefile
.DEFAULT_GOAL:=help
|
|
.PHONY: help setup test clean update-deps run
|
|
|
|
help:
|
|
@echo 'Usage: make <command>'
|
|
@cat $(MAKEFILE_LIST) | grep '^[a-zA-Z]' | \
|
|
sort | \
|
|
awk -F ':.*?## ' 'NF==2 {printf " %-26s%s\n", $$1, $$2}'
|
|
|
|
setup: ## Setup local environment
|
|
# Automatically adds missing plugins (from a custom repository if defined after the version number)
|
|
while read -ra line; do asdf plugin add "$${line[0]}" "$${line[2]:1}" || [ "$$?" -eq "2" ] ; done < .tool-versions
|
|
asdf install
|
|
asdf exec pre-commit install
|
|
asdf exec uv sync
|
|
|
|
test: ## Run tests
|
|
asdf exec pre-commit run --all-files
|
|
|
|
clean: ## Cleanup build artifacts and similar
|
|
...
|
|
|
|
update-deps: ## Update all dependencies
|
|
pre-commit autoupdate
|
|
|
|
run: ## Run the application
|
|
asdf exec uv run main.py
|