From 1a5120dc9deb0a986e00606043dc92c8cc6b06a7 Mon Sep 17 00:00:00 2001 From: Mason Daugherty Date: Mon, 30 Jun 2025 13:59:35 -0400 Subject: [PATCH] langchain-deepseek[patch]: add ruff bandit rules (#31792) add ruff bandit rules --- libs/partners/deepseek/pyproject.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/partners/deepseek/pyproject.toml b/libs/partners/deepseek/pyproject.toml index 0842e38c150..d481c01db07 100644 --- a/libs/partners/deepseek/pyproject.toml +++ b/libs/partners/deepseek/pyproject.toml @@ -49,7 +49,7 @@ disallow_untyped_defs = "True" target-version = "py39" [tool.ruff.lint] -select = ["E", "F", "I", "T201", "UP"] +select = ["E", "F", "I", "T201", "UP", "S"] ignore = [ "UP007", ] [tool.coverage.run] @@ -61,3 +61,9 @@ markers = [ "compile: mark placeholder test used to compile integration tests without running them", ] asyncio_mode = "auto" + +[tool.ruff.lint.extend-per-file-ignores] +"tests/**/*.py" = [ + "S101", # Tests need assertions + "S311", # Standard pseudo-random generators are not suitable for cryptographic purposes +]