mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-22 02:15:22 -04:00
[PR #65] [MERGED] feat(python): upgrade ruff to v0.11.2, integrate flake8-bandit ruleset for security linting #115
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/65
Author: @QuantumGhost
Created: 3/24/2025
Status: ✅ Merged
Merged: 3/24/2025
Merged by: @Yeuoly
Base:
main← Head:feat/flask8-bandit📝 Commits (4)
cb9cbf5chore(python): update .gitignore for Python SDK7222eb7chore: add .editorconfig for consistent formattinga5e3842chore(python): upgrade ruff version to v0.11.2d6f0c43feat(python): Integrate flake8-bandit ruleset for security linting📊 Changes
9 files changed (+151 additions, -33 deletions)
View changed files
➕
.editorconfig(+18 -0)📝
python/.gitignore(+93 -8)📝
python/.ruff.toml(+15 -0)📝
python/dify_plugin/interfaces/model/openai_compatible/speech2text.py(+1 -1)📝
python/dify_plugin/interfaces/model/openai_compatible/tts.py(+1 -1)📝
python/dify_plugin/invocations/file.py(+1 -1)📝
python/examples/jina/models/text_embedding/text_embedding.py(+1 -1)📝
python/pdm.lock(+20 -20)📝
python/pyproject.toml(+1 -1)📄 Description
Enable the flake8-bandit (S) ruleset in ruff to enforce security-related
best practices and mitigate potential vulnerabilities in the codebase.
Suppress existing issues in the current code using
noqacomments, primarily forinstances of
requestscalls without a specifiedtimeoutparameter.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.