Format-The-Codebase

- update scripts
This commit is contained in:
Ömer Faruk Özdemir 2022-02-10 11:25:27 +03:00
parent 934071d607
commit 47b4b69290
4 changed files with 19 additions and 5 deletions

View File

@ -68,8 +68,14 @@ All PRs should be against `master`. Direct commits to master are blocked, and PR
* A maintainer (@abidlabs, @aliabid94, @aliabd, @AK391, or @dawoodkhan82) is tagged in the PR comments and asked to complete a review
We ask that you make sure initial CI checks are passing before requesting a review. One of the Gradio maintainers will merge the PR when all the checks are passing.
Do not forget the format the codebase before pushing.
Do not forget the format the backend before pushing.
```
bash scripts/run_frontend.sh
bash scripts/format_backend.sh
```
You can run the circleci checks locally as well.
```
bash scripts/run_circleci.sh
```
*Could these guidelines be clearer? Feel free to open a PR to help us faciltiate open-source contributions!*

View File

@ -8,6 +8,3 @@ else
npm install
npm run build
fi

11
scripts/run_circleci.sh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/bash
if [ -z "$(ls | grep CONTRIBUTING.md)" ]; then
echo "Please run the script from repo directory"
exit -1
else
echo "Running circleci locally"
circleci local execute
fi