瀏覽代碼

chore: remove ty type checker from reformat script and pre-commit hooks (#25021)

tags/1.8.1
-LAN- 2 月之前
父節點
當前提交
f540d0b747
沒有連結到貢獻者的電子郵件帳戶。
共有 2 個檔案被更改,包括 0 行新增12 行删除
  1. 0
    3
      dev/reformat
  2. 0
    9
      web/.husky/pre-commit

+ 0
- 3
dev/reformat 查看文件

@@ -14,8 +14,5 @@ uv run --directory api --dev ruff format ./
# run dotenv-linter linter
uv run --project api --dev dotenv-linter ./api/.env.example ./web/.env.example

# run ty check
dev/ty-check

# run mypy check
dev/mypy-check

+ 0
- 9
web/.husky/pre-commit 查看文件

@@ -41,15 +41,6 @@ if $api_modified; then
echo "Please run 'dev/reformat' to fix the fixable linting errors."
exit 1
fi

# run ty checks
uv run --directory api --dev ty check || status=$?
status=${status:-0}
if [ $status -ne 0 ]; then
echo "ty type checker on api module error, exit code: $status"
echo "Please run 'dev/ty-check' to check the type errors."
exit 1
fi
fi

if $web_modified; then

Loading…
取消
儲存