mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-22 02:15:22 -04:00
[PR #66] [MERGED] feat(python): Integrate flake8-builtins (A) ruleset with ruff #116
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
main← Head:feat/flake8-builtins📝 Commits (1)
3e891a6feat(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
# noqato suppress warnings where necessary.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.