chore(build): bump poetry from 1.x to 2.x (#12369)

This commit is contained in:
Bowen Liang
2025-01-22 13:38:24 +08:00
committed by GitHub
parent 3ee213ddca
commit c62b7cc679
11 changed files with 889 additions and 26 deletions

View File

@@ -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

View File

@@ -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