ref: Add ruff rules for bandit (S) (#4111)
* Add ruff rules for bandit (S) * Changes following review
This commit is contained in:
parent
6180a6daed
commit
8224bce532
28 changed files with 455 additions and 41 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue