gradio/scripts/format_backend.sh
Abubakar Abid cbdfbdfc97
upgrade ruff test dependency to ruff==0.4.1 (#8100)
* upgrade ruff==0.4.1

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-23 09:16:58 -07:00

9 lines
261 B
Bash
Executable File

#!/bin/bash -eu
cd "$(dirname ${0})/.."
echo "Formatting the backend... Our style follows the ruff code style."
python -c "import gradio"
python -m ruff check --fix gradio test client
python -m ruff format gradio test client
bash scripts/type_check_backend.sh