Download scripts/format_backend.sh from mindmime/gradio: direct link, hf CLI and curl.
- Browser
- Download file 327 Bytes
-
https://huggingface.co/spaces/mindmime/gradio/resolve/main/scripts/format_backend.sh
- Command line
-
hf download hf://spaces/mindmime/gradio/scripts/format_backend.sh
-
curl -L -o format_backend.sh https://huggingface.co/spaces/mindmime/gradio/resolve/main/scripts/format_backend.sh
327 Bytes
| 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 | |