Merge pull request #630 from jimfingal/jim/makeitblack

Proof of concept adding `black` command
This commit is contained in:
Mouse Reeve 2021-03-08 07:09:24 -08:00 committed by GitHub
commit 99fa54d7bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 5 deletions

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
@ -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

View file

@ -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