langchain-xai[patch]: Add ruff bandit rules to linter (#31816)

- Add ruff bandit rules
- Some formatting
This commit is contained in:
Mason Daugherty
2025-07-01 14:59:06 -04:00
committed by GitHub
parent 86a698d1b6
commit eb12294583
2 changed files with 28 additions and 26 deletions

View File

@@ -54,7 +54,7 @@ disallow_untyped_defs = "True"
target-version = "py39"
[tool.ruff.lint]
select = ["E", "F", "I", "D", "UP"]
select = ["E", "F", "I", "D", "UP", "S"]
ignore = [ "UP007", ]
[tool.coverage.run]
@@ -74,3 +74,9 @@ convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["D"]
[tool.ruff.lint.extend-per-file-ignores]
"tests/**/*.py" = [
"S101", # Tests need assertions
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
]