gradio/scripts/lint_backend.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

6 lines
114 B
Bash

#!/bin/bash
cd "$(dirname ${0})/.."
python -m ruff gradio test client
python -m black --check gradio test client