[PR #66] [MERGED] feat(python): Integrate flake8-builtins (A) ruleset with ruff #116

Closed
opened 2026-02-15 21:15:50 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/66
Author: @QuantumGhost
Created: 3/24/2025
Status: Merged
Merged: 3/24/2025
Merged by: @Yeuoly

Base: mainHead: feat/flake8-builtins


📝 Commits (1)

  • 3e891a6 feat(python): Integrate flake8-builtins (A) ruleset with ruff

📊 Changes

8 files changed (+20 additions, -16 deletions)

View changed files

📝 python/.ruff.toml (+4 -0)
📝 python/dify_plugin/core/runtime.py (+4 -4)
📝 python/dify_plugin/core/server/__base/filter_reader.py (+1 -1)
📝 python/dify_plugin/core/server/__base/request_reader.py (+1 -1)
📝 python/dify_plugin/core/server/io_server.py (+3 -3)
📝 python/dify_plugin/core/server/router.py (+2 -2)
📝 python/dify_plugin/interfaces/model/openai_compatible/llm.py (+1 -1)
📝 python/dify_plugin/plugin.py (+4 -4)

📄 Description

Introduce the flake8-builtins (A) ruleset to prevent accidental shadowing of Python's built-in functions.

Address existing issues primarily by adding # noqa to suppress warnings where necessary.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-sdks/pull/66 **Author:** [@QuantumGhost](https://github.com/QuantumGhost) **Created:** 3/24/2025 **Status:** ✅ Merged **Merged:** 3/24/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `feat/flake8-builtins` --- ### 📝 Commits (1) - [`3e891a6`](https://github.com/langgenius/dify-plugin-sdks/commit/3e891a68fdd408074f9c63bebef67659191db922) feat(python): Integrate flake8-builtins (A) ruleset with ruff ### 📊 Changes **8 files changed** (+20 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `python/.ruff.toml` (+4 -0) 📝 `python/dify_plugin/core/runtime.py` (+4 -4) 📝 `python/dify_plugin/core/server/__base/filter_reader.py` (+1 -1) 📝 `python/dify_plugin/core/server/__base/request_reader.py` (+1 -1) 📝 `python/dify_plugin/core/server/io_server.py` (+3 -3) 📝 `python/dify_plugin/core/server/router.py` (+2 -2) 📝 `python/dify_plugin/interfaces/model/openai_compatible/llm.py` (+1 -1) 📝 `python/dify_plugin/plugin.py` (+4 -4) </details> ### 📄 Description Introduce the flake8-builtins (A) ruleset to prevent accidental shadowing of Python's built-in functions. Address existing issues primarily by adding `# noqa` to suppress warnings where necessary. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 21:15:50 -05:00
yindo closed this issue 2026-02-15 21:15:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-sdks#116