Download shell/lint.sh from dbouget/LyNos: direct link, hf CLI and curl.
- Browser
- Download file 523 Bytes
-
https://huggingface.co/spaces/dbouget/LyNos/resolve/e09a07ac0db039c5cc70973624aa3d4b59373d5e/shell/lint.sh
- Command line
-
hf download hf://spaces/dbouget/LyNos@e09a07ac0db039c5cc70973624aa3d4b59373d5e/shell/lint.sh
-
curl -L -o lint.sh https://huggingface.co/spaces/dbouget/LyNos/resolve/e09a07ac0db039c5cc70973624aa3d4b59373d5e/shell/lint.sh
523 Bytes
| isort --check --sl -c demo/src/ demo/app.py | |
| if ! [ $? -eq 0 ] | |
| then | |
| echo "Please run \"sh shell/format.sh\" to format the code." | |
| exit 1 | |
| fi | |
| echo "no issues with isort" | |
| flake8 demo/src/ demo/app.py | |
| if ! [ $? -eq 0 ] | |
| then | |
| echo "Please fix the code style issue." | |
| exit 1 | |
| fi | |
| echo "no issues with flake8" | |
| black --check --line-length 160 demo/src/ demo/app.py | |
| if ! [ $? -eq 0 ] | |
| then | |
| echo "Please run \"sh shell/format.sh\" to format the code." | |
| exit 1 | |
| fi | |
| echo "no issues with black" | |
| echo "linting success!" | |