mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-06 09:26:50 +08:00
chore(build): bump poetry from 1.x to 2.x (#12369)
This commit is contained in:
@@ -9,10 +9,10 @@ if ! command -v ruff &> /dev/null || ! command -v dotenv-linter &> /dev/null; th
|
||||
fi
|
||||
|
||||
# run ruff linter
|
||||
poetry run -C api ruff check --fix ./api
|
||||
poetry run -C api ruff check --fix ./
|
||||
|
||||
# run ruff formatter
|
||||
poetry run -C api ruff format ./api
|
||||
poetry run -C api ruff format ./
|
||||
|
||||
# run dotenv-linter linter
|
||||
poetry run -C api dotenv-linter ./api/.env.example ./web/.env.example
|
||||
poetry run -P api dotenv-linter ./api/.env.example ./web/.env.example
|
||||
|
||||
@@ -12,7 +12,7 @@ if [ $? -ne 0 ]; then
|
||||
# update poetry.lock
|
||||
# refreshing lockfile only without updating locked versions
|
||||
echo "poetry.lock is outdated, refreshing without updating locked versions ..."
|
||||
poetry lock -C api --no-update
|
||||
poetry lock -C api
|
||||
else
|
||||
echo "poetry.lock is ready."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user