mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-03 05:48:44 +00:00
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
|
execweb python manage.py initdb
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function makeitblack {
|
||||||
|
runweb black celerywyrm bookwyrm
|
||||||
|
}
|
||||||
|
|
||||||
CMD=$1
|
CMD=$1
|
||||||
shift
|
shift
|
||||||
|
|
||||||
|
@ -96,7 +100,10 @@ case "$CMD" in
|
||||||
clean)
|
clean)
|
||||||
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
|
esac
|
||||||
|
|
Loading…
Reference in a new issue