Add Make and Pipelines for checks
Some checks failed
Run checks / checks (push) Failing after 6s

This commit is contained in:
Bart van der Braak 2024-11-19 16:51:43 +01:00
parent 5b06c92731
commit 8e0c7d38ec
10 changed files with 225 additions and 115 deletions

16
Makefile Normal file
View file

@ -0,0 +1,16 @@
.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