mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-12 10:34:32 +08:00
2de9ee8bfb
* update-shortcut-syntax - fix&update gr.component - create a demo introducing shortcuts within Blocks * update-shortcut-syntax - tweaks * update-shortcut-syntax - tweaks * update-shortcut-syntax - fix formatting * update-shortcut-syntax - tweaks - fix tests * update-shortcut-syntax - tweaks - fix tests * update-shortcut-syntax - tweaks - fix tests
11 lines
385 B
Bash
Executable File
11 lines
385 B
Bash
Executable File
#!/bin/bash
|
|
if [ -z "$(ls | grep CONTRIBUTING.md)" ]; then
|
|
echo "Please run the script from repo directory"
|
|
exit -1
|
|
else
|
|
echo "Formatting backend and tests 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,F403 gradio test
|
|
fi
|