gradio/scripts/format_backend.sh
Ömer Faruk Özdemir 47b4b69290 Format-The-Codebase
- update scripts
2022-02-10 11:25:27 +03:00

11 lines
373 B
Bash

#!/bin/bash
if [ -z "$(ls | grep CONTRIBUTING.md)" ]; then
echo "Please run the script from repo directory"
exit -1
else
echo "Installing formatting with black and isort, also checking for standards with flake8"
python -m black gradio test
python -m isort --profile=black gradio test
python -m flake8 --ignore=E731,E501,E722,W503,E126,F401,E203 gradio test
fi