[PR #25739] chore: remove UP042 ruff rule as it requires preview mode #31183

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

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

State: closed
Merged: No


Summary

  • Removed UP042 rule from ruff configuration as it is a preview rule that requires preview mode to be enabled

Related Issue

Closes #25738

Changes

Removed the UP042 rule ("use StrEnum") from api/.ruff.toml since it's a preview rule and our configuration has preview = false, meaning this rule was not actually being applied.

**Original Pull Request:** https://github.com/langgenius/dify/pull/25739 **State:** closed **Merged:** No --- ## Summary - Removed UP042 rule from ruff configuration as it is a preview rule that requires preview mode to be enabled ## Related Issue Closes #25738 ## Changes Removed the UP042 rule ("use StrEnum") from `api/.ruff.toml` since it's a preview rule and our configuration has `preview = false`, meaning this rule was not actually being applied.
yindo added the pull-request label 2026-02-21 20:48:59 -05:00
yindo closed this issue 2026-02-21 20:48:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#31183