gradio / scripts /format_backend.sh
mindmime's picture
Upload folder using huggingface_hub
a03b3ba verified
raw
history blame contribute delete
327 Bytes
#!/bin/bash -eu
cd "$(dirname ${0})/.."
echo "Formatting the backend... Our style follows the ruff code style."
python -c "import gradio"
python -m ruff --fix gradio test
python -m ruff format gradio test
bash scripts/type_check_backend.sh
bash client/python/scripts/format.sh # Call the client library's formatting script