Skip to content

Commit 425ee52

Browse files
authored
langchain-huggingface[patch]: Add ruff bandit rules to linter (#31798)
- Add ruff bandit rules
1 parent 0efaa48 commit 425ee52

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

libs/partners/huggingface/pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ disallow_untyped_defs = "True"
5858
target-version = "py39"
5959

6060
[tool.ruff.lint]
61-
select = ["E", "F", "I", "T201", "UP"]
61+
select = ["E", "F", "I", "T201", "UP", "S"]
6262
ignore = ["UP007"]
6363

6464
[tool.coverage.run]
@@ -71,3 +71,9 @@ markers = [
7171
"compile: mark placeholder test used to compile integration tests without running them",
7272
]
7373
asyncio_mode = "auto"
74+
75+
[tool.ruff.lint.extend-per-file-ignores]
76+
"tests/**/*.py" = [
77+
"S101", # Tests need assertions
78+
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
79+
]

0 commit comments

Comments
 (0)