chore: merge lint dependency group into dev group of python packages (#18088)

This commit is contained in:
Bowen Liang 2025-04-15 20:50:06 +08:00 • committed by GitHub
commit 9d7357058a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 37 additions and 61 deletions

View file

@ -27,17 +27,11 @@ done
if $api_modified; then
echo "Running Ruff linter on api module"
# python style checks rely on `ruff` in path
if ! command -v ruff > /dev/null 2>&1; then
echo "Installing linting tools (Ruff, dotenv-linter ...) ..."
uv sync --project api --only-group lint
fi
# run Ruff linter auto-fixing
uv run --project api ruff check --fix ./api
uv run --project api --dev ruff check --fix ./api
# run Ruff linter checks
uv run --project api ruff check ./api || status=$?
uv run --project api --dev ruff check ./api || status=$?
status=${status:-0}