ref: Add ruff rules for bandit (S) (#4111)

* Add ruff rules for bandit (S)

* Changes following review
This commit is contained in:
Christophe Bornet 2024-10-23 00:33:37 +02:00 • committed by GitHub
commit 8224bce532
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 455 additions and 41 deletions

View file

@ -59,7 +59,6 @@ ignore = [
# Rules that are TODOs
"ANN", # Missing type annotations
"D1", # Missing docstrings
"S",
"SLF",
]
@ -67,6 +66,12 @@ ignore = [
"langflow/api/v1/*" = [
"TCH", # FastAPI needs to evaluate types at runtime
]
"langflow/{components/tools/python_code_structured_tool.py,custom/code_parser/code_parser.py,utils/validate.py}" = [
"S102", # Use of exec
]
"langflow/services/cache/*" = [
"S301", # Use of pickle
]
[tool.uv]
dev-dependencies = [
@ -154,6 +159,7 @@ dependencies = [
"clickhouse-connect==0.7.19",
"assemblyai>=0.33.0",
"fastapi-pagination>=0.12.29",
"defusedxml>=0.7.1",
]
[project.urls]