gradio/scripts/format_backend.sh
Artin Mohammadi bdced314bc
Scripts become much easier to read and understand (#1918)
* Being nice to the user

* Front-end builder, CircleCI runner, and Gradio installer updated

* The testing scripts updated

* Front-end runner and the website launcher updated

* The formatters updated

* GitHub Actions and PyPI uploader scripts updated

* Updating the URLs

* Removing commented codes

* Delete a blank line
2022-08-01 15:17:03 -07:00

9 lines
261 B
Bash
Executable File

#!/bin/bash
cd "$(dirname ${0})/.."
echo "Formatting the backend... Our style follows the Black code style."
python -m black gradio test
python -m isort --profile=black gradio test
python -m flake8 --ignore=E731,E501,E722,W503,E126,F401,E203,F403 gradio test