gradio/scripts/lint_backend.sh
D V 8a70e83db9
switch from black to ruff formatter (#6543)
* migrate from black to ruff

* fix script and dependencies

* applying ruff

* add changeset

* add changeset

* address ruff feedback

* replace linter

* fixed typing

* fix typing

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-06 15:16:32 -08:00

7 lines
146 B
Bash

#!/bin/bash
cd "$(dirname ${0})/.."
python -c "import gradio"
python -m ruff gradio test client
python -m ruff format --check gradio test client