[PR #25021] chore: remove ty type checker from reformat script and pre-commit hooks #30890

Closed
opened 2026-02-21 20:48:25 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/25021

State: closed
Merged: Yes


Summary

  • Remove ty type checker from dev/reformat script
  • Remove ty type checker from web/.husky/pre-commit hook
  • Keep mypy for critical type safety checks

Motivation

The ty type checker is currently blocking developers from committing code in the early stages of this project. Since the project is not yet production-ready and may contain code that isn't fully covered by type annotations, enforcing strict type checking at the pre-commit stage creates a poor developer experience.

By removing ty from the automated checks while keeping mypy, we maintain type safety where it matters most while allowing more flexibility during the development phase.

Fixes #25020

**Original Pull Request:** https://github.com/langgenius/dify/pull/25021 **State:** closed **Merged:** Yes --- ## Summary - Remove ty type checker from `dev/reformat` script - Remove ty type checker from `web/.husky/pre-commit` hook - Keep mypy for critical type safety checks ## Motivation The ty type checker is currently blocking developers from committing code in the early stages of this project. Since the project is not yet production-ready and may contain code that isn't fully covered by type annotations, enforcing strict type checking at the pre-commit stage creates a poor developer experience. By removing ty from the automated checks while keeping mypy, we maintain type safety where it matters most while allowing more flexibility during the development phase. Fixes #25020
yindo added the pull-request label 2026-02-21 20:48:25 -05:00
yindo closed this issue 2026-02-21 20:48:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#30890