mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-17 18:23:59 +00:00
langchain-ollama[patch]: Add ruff bandit rules to linter (#31811)
- Add ruff bandit rules
This commit is contained in:
parent
c9e1ce2966
commit
d0dce5315f
@ -54,6 +54,7 @@ select = [
|
|||||||
"T201", # print
|
"T201", # print
|
||||||
"D", # pydocstyle
|
"D", # pydocstyle
|
||||||
"UP", # pyupgrade
|
"UP", # pyupgrade
|
||||||
|
"S", # flake8-bandit
|
||||||
]
|
]
|
||||||
ignore = [ "UP007", ]
|
ignore = [ "UP007", ]
|
||||||
|
|
||||||
@ -72,3 +73,9 @@ markers = [
|
|||||||
"compile: mark placeholder test used to compile integration tests without running them",
|
"compile: mark placeholder test used to compile integration tests without running them",
|
||||||
]
|
]
|
||||||
asyncio_mode = "auto"
|
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
|
||||||
|
]
|
Loading…
Reference in New Issue
Block a user