forked from mirrors/bookwyrm
Add black command to bw-dev
This commit is contained in:
parent
252f09325a
commit
33cf03df74
2 changed files with 8 additions and 6 deletions
5
Makefile
5
Makefile
|
@ -1,5 +0,0 @@
|
|||
.PHONY: itblack
|
||||
|
||||
itblack:
|
||||
docker-compose run --rm web black celerywyrm
|
||||
docker-compose run --rm web black bookwyrm
|
9
bw-dev
9
bw-dev
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue