From 10547125e6d0654673799574e0ee83d9674aeff5 Mon Sep 17 00:00:00 2001 From: Novice Date: Mon, 17 Mar 2025 14:00:21 +0800 Subject: [PATCH] chore: restore the pre-commit hook --- web/.husky/pre-commit | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/.husky/pre-commit b/web/.husky/pre-commit index b3a0e60494..cca8abe27a 100755 --- a/web/.husky/pre-commit +++ b/web/.husky/pre-commit @@ -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}