Add black command to bw-dev

This commit is contained in:
Jim Fingal 2021-03-07 19:43:36 -08:00
parent 252f09325a
commit 33cf03df74
2 changed files with 8 additions and 6 deletions

View file

@ -1,5 +0,0 @@
.PHONY: itblack
itblack:
docker-compose run --rm web black celerywyrm
docker-compose run --rm web black bookwyrm

9
bw-dev
View file

@ -35,6 +35,10 @@ function initdb {
execweb python manage.py initdb
}
function makeitblack {
runweb black celerywyrm bookwyrm
}
CMD=$1
shift
@ -96,7 +100,10 @@ case "$CMD" in
clean)
clean
;;
black)
makeitblack
;;
*)
echo "Unrecognised command. Try: build, clean, up, initdb, resetdb, makemigrations, migrate, bash, shell, dbshell, restart_celery, test, pytest, test_report"
echo "Unrecognised command. Try: build, clean, up, initdb, resetdb, makemigrations, migrate, bash, shell, dbshell, restart_celery, test, pytest, test_report, black"
;;
esac