gradio/client/python/scripts/format.sh
Freddy Boulton b7010fa0eb
Only run install steps in backend ci if not previously cached (#4517)
* dont install if cache

* Fix

* Fix client cache

* Potential fix

* Change key name

* Fix

* Use python command

* Build front-end in lint job

* Install

* Fix

* Build afterward

* Consolidate lint

* trigger ci

* Fix windows

* Use virtualenv

* New try

* Typo

* Fix typp

* Add full path

* Separate Linux and windows steps

* Typos

* shell

* trigger ci

* Fix

* use command

* Use cache for setup python too

* Separate cache for front-end

* trigger ci

* Add Don't lint on windows

* Add if changes

* Delete restore keys

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-16 15:34:06 -04:00

11 lines
249 B
Bash

#!/bin/bash
cd "$(dirname ${0})/.."
echo "Formatting the client library.. Our style follows the Black code style."
python -m ruff --fix .
python -m black .
echo "Type checking the client library with pyright"
python -m pyright gradio_client/*.py