ollama: add pydocstyle linting for ollama (#27686)

Description: add lint docstrings for ollama module
Issue: the issue https://github.com/langchain-ai/langchain/issues/23188
@baskaryan

test: ruff check passed.
<img width="311" alt="e94c68ffa93dd518297a95a93de5217"
src="https://github.com/user-attachments/assets/e96bf721-e0e3-44de-a50e-206603de398e">

Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
JiaranI
2024-10-31 11:06:55 +08:00
committed by GitHub
parent a8a33b2dc6
commit 3952ee31b8
5 changed files with 23 additions and 2 deletions

View File

@@ -24,7 +24,20 @@ ollama = ">=0.3.0,<1"
langchain-core = "^0.3.0"
[tool.ruff.lint]
select = ["E", "F", "I", "T201"]
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"T201", # print
"D", # pydocstyle
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["D"] # ignore docstring checks for tests
[tool.coverage.run]
omit = ["tests/*"]