From e5d6047fb49f4d1b56ca362e97c741be87d014b9 Mon Sep 17 00:00:00 2001 From: QuantumGhost Date: Mon, 17 Mar 2025 16:40:27 +0800 Subject: [PATCH] chore(api): Disable preview rules of Ruff while running pre-commit hook (#15999) --- web/.husky/pre-commit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/.husky/pre-commit b/web/.husky/pre-commit index cca8abe27a..a0d7df1687 100755 --- a/web/.husky/pre-commit +++ b/web/.husky/pre-commit @@ -1,3 +1,4 @@ +#!/bin/sh # get the list of modified files files=$(git diff --cached --name-only) @@ -32,7 +33,7 @@ if $api_modified; then ruff check --fix ./api # run Ruff linter checks - ruff check --preview ./api || status=$? + ruff check ./api || status=$? status=${status:-0}