You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gcgj-dify-1.7.0/dev/reformat

21 lines
433 B
Bash

#!/bin/bash
set -x
# python style checks rely on `ruff` in path
if ! command -v ruff &> /dev/null; then
echo "Installing Ruff ..."
pip install ruff
fi
# run ruff linter
ruff check --fix ./api
# env files linting relies on `dotenv-linter` in path
if ! command -v dotenv-linter &> /dev/null; then
echo "Installing dotenv-linter ..."
pip install dotenv-linter
fi
dotenv-linter ./api/.env.example ./web/.env.example