dragon-bot/Makefile
Luke Robles 80f4ab04bf
All checks were successful
continuous-integration/drone/push Build is passing
Update social media link corrections for x.com and twitter.com, also update makefile to fix python formatter issues
2023-12-12 10:30:52 -08:00

16 lines
495 B
Makefile

include .env
# https://github.com/psf/black/issues/1106#issuecomment-547230844
format:
docker run --rm -ti -v ${PWD}:/tmp/python/app python:alpine sh -c "apk add --no-cache gcc musl-dev; cd /tmp/python; pip install -q black; black ."
clean:
docker rm -f dragon-bot-test
build-test:
docker build -f ./Dockerfile-test-env -t dragon-bot-test .
DRAGON_ENV := "test"
test: format build-test
docker run -ti -v ${PWD}/app:/app --rm --name dragon-bot-test --env-file=./.env dragon-bot-test bash