builder.braak.pro/Makefile
Bart van der Braak 1c908c4b82
Some checks failed
Run checks / checks (push) Failing after 6s
Run checks / checks (pull_request) Failing after 6s
Add Make and Pipelines for checks
2024-11-19 18:21:16 +01:00

16 lines
No EOL
582 B
Makefile

.PHONY: venv setup check
help: ## Display this help message
@echo "Usage:"
@echo " make <target>"
@echo ""
@echo "Targets:"
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " %-20s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
setup: ## Create Python virtualenv and install dependencies
@if [ ! -f .env ]; then cp .env.example .env; fi
@if [ ! -d .venv ]; then python3 -m venv .venv; fi
@if [ -d .venv ]; then . .venv/bin/activate && pip3 install -r requirements.txt; fi
check: ## Run linter, formatter and typechecks
ruff check && ruff format && mypy config/master.cfg