Add pylint to bw-dev
Because pylint requires the app to be fully parseable with all its dependencies, we run it in the web container, and add pylint as a dev dependency.
This commit is contained in:
parent
6d6ab9a531
commit
b3603c04c5
4 changed files with 17 additions and 9 deletions
5
bw-dev
5
bw-dev
|
@ -140,6 +140,10 @@ case "$CMD" in
|
|||
black)
|
||||
docker-compose run --rm dev-tools black celerywyrm bookwyrm
|
||||
;;
|
||||
pylint)
|
||||
# pylint depends on having the app dependencies in place, so we run it in the web container
|
||||
runweb pylint bookwyrm/
|
||||
;;
|
||||
prettier)
|
||||
docker-compose run --rm dev-tools npx prettier --write bookwyrm/static/js/*.js
|
||||
;;
|
||||
|
@ -149,6 +153,7 @@ case "$CMD" in
|
|||
--config dev-tools/.stylelintrc.js
|
||||
;;
|
||||
formatters)
|
||||
runweb pylint bookwyrm/
|
||||
docker-compose run --rm dev-tools black celerywyrm bookwyrm
|
||||
docker-compose run --rm dev-tools npx prettier --write bookwyrm/static/js/*.js
|
||||
docker-compose run --rm dev-tools npx stylelint \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue