Spaces:
Sleeping
Sleeping
Download scripts/auto_format.sh from ryanhoangt/UVD: direct link, hf CLI and curl.
- Browser
- Download file 449 Bytes
-
https://huggingface.co/spaces/ryanhoangt/UVD/resolve/main/scripts/auto_format.sh
- Command line
-
hf download hf://spaces/ryanhoangt/UVD/scripts/auto_format.sh
-
curl -L -o auto_format.sh https://huggingface.co/spaces/ryanhoangt/UVD/resolve/main/scripts/auto_format.sh
449 Bytes
| # Move to the directory containing the directory that this file is in | |
| cd "$( cd "$( dirname "${BASH_SOURCE[0]}/.." )" >/dev/null 2>&1 && pwd )" || exit | |
| echo RUNNING BLACK | |
| black . --exclude src --exclude external_projects | |
| echo BLACK DONE | |
| echo "" | |
| echo RUNNING DOCFORMATTER | |
| find . -name "*.py" | grep -v ^./src | grep -v ^./external_projects | grep -v used_configs | xargs docformatter --in-place -r | |
| echo DOCFORMATTER DONE | |
| echo ALL DONE |