Updates workflows

This commit is contained in:
Mouse Reeve
2022-02-15 12:25:35 -08:00
parent b601ac6f91
commit 714bb081ea
9 changed files with 10 additions and 1551 deletions

8
bw-dev
View File

@ -97,7 +97,7 @@ case "$CMD" in
docker-compose restart celery_worker
;;
pytest)
execweb pytest --no-cov-on-fail "$@"
runweb pytest --no-cov-on-fail "$@"
;;
collectstatic)
runweb python manage.py collectstatic --no-input
@ -141,9 +141,9 @@ case "$CMD" in
docker-compose run --rm dev-tools npx stylelint bookwyrm/static/**/*.css --fix
;;
formatters)
makeitblack
docker-compose run --rm dev-tools npx prettier --write bookwyrm/static/js/*.js
docker-compose run --rm dev-tools npx stylelint bookwyrm/static/**/*.css --fix
docker-compose run --rm dev-tools black celerywyrm bookwyrm && \
npx prettier --write bookwyrm/static/js/*.js && \
npx stylelint bookwyrm/static/**/*.css --fix
;;
update)
git pull