mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-22 02:15:22 -04:00
[PR #2] [MERGED] chore: Apply ruff formatter and linter #76
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/2
Author: @laipz8200
Created: 12/2/2024
Status: ✅ Merged
Merged: 12/3/2024
Merged by: @Yeuoly
Base:
main← Head:chore/apply-ruff-formatter-and-linter📝 Commits (10+)
43a1a30feat: Add.ruff.toml5858fe7chore: Apply formet and auto fix37128aechore: Apply unsafe auto-fixes and check manuallyb3e0612chore: Apply format4551f79chore: Fix lines-too-longdeb1216refactor: Usepathlibinstead ofopen.63d84d6fix(llm.py): Use clearly variable name.c58be38fix(plugin_executor): Yield data then return75cec12refactor(tts.py): Use context manager instead of__enter__()105606erefactor: Remove un-needed bool📊 Changes
102 files changed (+1025 additions, -1365 deletions)
View changed files
➕
python/.ruff.toml(+44 -0)📝
python/dify_plugin/__init__.py(+18 -23)📝
python/dify_plugin/config/config.py(+7 -18)📝
python/dify_plugin/core/entities/message.py(+4 -7)📝
python/dify_plugin/core/entities/plugin/io.py(+0 -1)📝
python/dify_plugin/core/entities/plugin/request.py(+8 -1)📝
python/dify_plugin/core/plugin_executor.py(+55 -129)📝
python/dify_plugin/core/plugin_registration.py(+28 -41)📝
python/dify_plugin/core/runtime.py(+45 -51)📝
python/dify_plugin/core/server/__base/filter_reader.py(+3 -7)📝
python/dify_plugin/core/server/__base/request_reader.py(+3 -6)📝
python/dify_plugin/core/server/__base/response_writer.py(+6 -21)📝
python/dify_plugin/core/server/__base/writer_entities.py(+6 -5)📝
python/dify_plugin/core/server/aws/request_reader.py(+6 -2)📝
python/dify_plugin/core/server/aws/response_writer.py(+3 -1)📝
python/dify_plugin/core/server/io_server.py(+9 -11)📝
python/dify_plugin/core/server/router.py(+6 -10)📝
python/dify_plugin/core/server/stdio/request_reader.py(+6 -9)📝
python/dify_plugin/core/server/stdio/response_writer.py(+2 -1)📝
python/dify_plugin/core/server/tcp/request_reader.py(+12 -15)...and 80 more files
📄 Description
.ruff.tomlfile.ruff format.ruff check.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.