gradio/scripts/format_backend.sh
Freddy Boulton e0a55df7dc
Modify CI to check for unused imports (#2555)
* Add lint script + remove unused imports

* Add lint file to sc
2022-10-28 10:56:18 -04:00

9 lines
285 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,E203,F403 gradio test --exclude gradio/__init__.py