chore: restore the pre-commit hook

This commit is contained in:
Novice 2025-03-17 14:00:21 +08:00
parent 8208269c9b
commit 10547125e6

View File

@ -28,7 +28,11 @@ if $api_modified; then
poetry install -C api --only lint
fi
# run Ruff linter auto-fixing
ruff check --fix ./api
# run Ruff linter checks
ruff check --preview ./api || status=$?
status=${status:-0}