Download dev/reformat from Severian/dify: direct link, hf CLI and curl.
- Browser
- Download file 467 Bytes
-
https://huggingface.co/spaces/Severian/dify/resolve/main/dev/reformat
- Command line
-
hf download hf://spaces/Severian/dify/dev/reformat
-
curl -L -o reformat https://huggingface.co/spaces/Severian/dify/resolve/main/dev/reformat
467 Bytes
| set -x | |
| # style checks rely on commands in path | |
| if ! command -v ruff &> /dev/null || ! command -v dotenv-linter &> /dev/null; then | |
| echo "Installing linting tools (Ruff, dotenv-linter ...) ..." | |
| poetry install -C api --only lint | |
| fi | |
| # run ruff linter | |
| poetry run -C api ruff check --fix ./api | |
| # run ruff formatter | |
| poetry run -C api ruff format ./api | |
| # run dotenv-linter linter | |
| poetry run -C api dotenv-linter ./api/.env.example ./web/.env.example | |