diff --git a/bw-dev b/bw-dev index b411751d..74c42fbb 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 @@ -102,7 +106,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 diff --git a/requirements.txt b/requirements.txt index e5d7798d..f354fd43 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ celery==4.4.2 -coverage==5.1 Django==3.0.7 django-model-utils==4.0.0 environs==7.2.0 @@ -8,11 +7,15 @@ Markdown==3.3.3 Pillow>=7.1.0 psycopg2==2.8.4 pycryptodome==3.9.4 -pytest-django==4.1.0 -pytest==6.1.2 -pytest-cov==2.10.1 python-dateutil==2.8.1 redis==3.4.1 requests==2.22.0 responses==0.10.14 django-rename-app==0.1.2 + +# Dev +black==20.8b1 +coverage==5.1 +pytest-django==4.1.0 +pytest==6.1.2 +pytest-cov==2.10.1