langchain-openai[patch]: Add ruff bandit rules to linter (#31788)

This commit is contained in:
Mason Daugherty
2025-06-30 14:01:32 -04:00
committed by GitHub
parent 645e25f624
commit 33c9bf1adc
4 changed files with 23 additions and 13 deletions

View File

@@ -64,7 +64,7 @@ ignore_missing_imports = true
target-version = "py39"
[tool.ruff.lint]
select = ["E", "F", "I", "T201", "UP"]
select = ["E", "F", "I", "T201", "UP", "S"]
ignore = [ "UP007", ]
[tool.ruff.format]
@@ -85,3 +85,9 @@ asyncio_mode = "auto"
filterwarnings = [
"ignore::langchain_core._api.beta_decorator.LangChainBetaWarning",
]
[tool.ruff.lint.extend-per-file-ignores]
"tests/**/*.py" = [
"S101", # Tests need assertions
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
]