From 97fc2ee6096fd00dc5a7118f44eb524a61afcdc7 Mon Sep 17 00:00:00 2001 From: William Valentin Date: Tue, 15 Jul 2025 13:37:44 -0700 Subject: [PATCH] Add Makefile with setup and management commands for development --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..21b7da6 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +setup-env: + pipenv --python 3.13.5 + pipenv shell + pipenv install --dev + pipenv run pre-commit install + pipenv run pre-commit autoupdate + pipenv run pre-commit run --all-files +build: + docker buildx build --platform linux/amd64,linux/arm64 -t ${IMAGE} --push . +run: + docker-compose up -d --build +stop: + docker-compose down +test: + docker-compose exec thechart pipenv run pytest -v --tb=short +lint: + docker-compose exec thechart pipenv run pre-commit run --all-files +format: + docker-compose exec thechart pipenv run pre-commit run --all-files --show-diff +shell: + docker-compose exec -it thechart /bin/bash +.PHONY: setup-env build run stop test lint format shell