Add shell check to pre-commit

drew/tilt-local-dev
Drew Bednar 2 years ago
parent 62da4a19ac
commit 492d28c04c

@ -1,5 +1,9 @@
default_stages: [commit, push] default_stages: [commit, push]
repos: repos:
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.8.0.4
hooks:
- id: shellcheck
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0 rev: v3.2.0
hooks: hooks:

@ -2,6 +2,8 @@
Learning distributed task queues by doing. Since it's a greenfield project this also uses a newer async web framework. Learning distributed task queues by doing. Since it's a greenfield project this also uses a newer async web framework.
See: [Celery docs](https://celery-safwan.readthedocs.io/en/latest/index.html)
## Debugging Celery ## Debugging Celery
### Check results in redis result backend ### Check results in redis result backend

@ -6,7 +6,7 @@ set -o nounset
# Use watchfiles during development # Use watchfiles during development
CELERY_WORKER_WATCH=${CELERY_WORKER_WATCH:-} CELERY_WORKER_WATCH=${CELERY_WORKER_WATCH:-}
if [ ! -z $CELERY_WORKER_WATCH ]; then if [ -n "${CELERY_WORKER_WATCH}" ]; then
watchfiles --filter python 'celery -A main.celery worker --loglevel=info' watchfiles --filter python 'celery -A main.celery worker --loglevel=info'
else else
exec python -m celery -A main.celery worker --loglevel=info exec python -m celery -A main.celery worker --loglevel=info

@ -5,3 +5,4 @@ pip-tools==6.8.0
pre-commit==2.20.0 pre-commit==2.20.0
pylint==2.15.2 pylint==2.15.2
pytest==7.1.3 pytest==7.1.3
shellcheck-py==0.8.0.4

@ -77,6 +77,8 @@ pytest==7.1.3
# via -r dev-requirements.in # via -r dev-requirements.in
pyyaml==6.0 pyyaml==6.0
# via pre-commit # via pre-commit
shellcheck-py==0.8.0.4
# via -r dev-requirements.in
toml==0.10.2 toml==0.10.2
# via pre-commit # via pre-commit
tomli==2.0.1 tomli==2.0.1

@ -4,6 +4,7 @@ fastapi==0.79.0
flower==1.2.0 flower==1.2.0
psycopg2-binary==2.9.3 psycopg2-binary==2.9.3
redis==4.3.4 redis==4.3.4
shellcheck-py==0.8.0.4
SQLAlchemy==1.4.40 SQLAlchemy==1.4.40
uvicorn[standard]==0.18.2 uvicorn[standard]==0.18.2
watchfiles==0.17.0 watchfiles==0.17.0

Loading…
Cancel
Save