ソースを参照

chore(api): Disable preview rules of Ruff while running pre-commit hook (#15999)

tags/1.1.0
QuantumGhost 7ヶ月前
コミット
e5d6047fb4
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更2行の追加1行の削除
  1. 2
    1
      web/.husky/pre-commit

+ 2
- 1
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}


読み込み中…
キャンセル
保存