forked from mirrors/bookwyrm
Merge pull request #630 from jimfingal/jim/makeitblack
Proof of concept adding `black` command
This commit is contained in:
commit
99fa54d7bd
2 changed files with 15 additions and 5 deletions
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
|
||||||
|
|
||||||
|
@ -102,7 +106,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
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
celery==4.4.2
|
celery==4.4.2
|
||||||
coverage==5.1
|
|
||||||
Django==3.0.7
|
Django==3.0.7
|
||||||
django-model-utils==4.0.0
|
django-model-utils==4.0.0
|
||||||
environs==7.2.0
|
environs==7.2.0
|
||||||
|
@ -8,11 +7,15 @@ Markdown==3.3.3
|
||||||
Pillow>=7.1.0
|
Pillow>=7.1.0
|
||||||
psycopg2==2.8.4
|
psycopg2==2.8.4
|
||||||
pycryptodome==3.9.4
|
pycryptodome==3.9.4
|
||||||
pytest-django==4.1.0
|
|
||||||
pytest==6.1.2
|
|
||||||
pytest-cov==2.10.1
|
|
||||||
python-dateutil==2.8.1
|
python-dateutil==2.8.1
|
||||||
redis==3.4.1
|
redis==3.4.1
|
||||||
requests==2.22.0
|
requests==2.22.0
|
||||||
responses==0.10.14
|
responses==0.10.14
|
||||||
django-rename-app==0.1.2
|
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
|
||||||
|
|
Loading…
Reference in a new issue