From 33cf03df74409b7450304f1b455b9a1ed5b63164 Mon Sep 17 00:00:00 2001 From: Jim Fingal Date: Sun, 7 Mar 2021 19:43:36 -0800 Subject: [PATCH] Add black command to bw-dev --- Makefile | 5 ----- bw-dev | 9 ++++++++- 2 files changed, 8 insertions(+), 6 deletions(-) delete mode 100644 Makefile diff --git a/Makefile b/Makefile deleted file mode 100644 index 44abad0b3..000000000 --- a/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -.PHONY: itblack - -itblack: - docker-compose run --rm web black celerywyrm - docker-compose run --rm web black bookwyrm \ No newline at end of file diff --git a/bw-dev b/bw-dev index f3162bd36..2aa469423 100755 --- a/bw-dev +++ b/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