langchain-perplexity[patch]: Add ruff bandit rules to linter (#31812)

- Add ruff bandit rules
This commit is contained in:
Mason Daugherty 2025-07-01 14:17:28 -04:00 committed by GitHub
parent f30fe07620
commit 3190c4132f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,7 +59,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]
@ -80,3 +80,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
]