Add pydocstyle to the ruff rules (#52136)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <hej.mellor@gmail.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Harry Mellor
2026-09-16 16:44:29 +00:00
committed by GitHub
co-authored by Claude Opus 5
parent 804e5377aa
commit 8c1557a79c
2002 changed files with 15024 additions and 14269 deletions
+11
View File
@@ -60,9 +60,13 @@ include = ["vllm*"]
"vllm/third_party/**" = ["ALL"]
"vllm/version.py" = ["F401"]
"vllm/_version.py" = ["ALL"]
# test args are mostly pytest fixtures, which don't benefit from descriptions
"tests/**" = ["D417"]
[tool.ruff.lint]
select = [
# pydocstyle
"D",
# pycodestyle
"E",
# Pyflakes
@@ -83,6 +87,10 @@ select = [
"INP",
]
ignore = [
# don't enforce that everything has a docstring
"D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107",
# unwanted pydocstyle rules
"D205", "D301", "D400", "D401", "D404", "D415",
# star imports
"F405", "F403",
# lambda expression assignment
@@ -95,6 +103,9 @@ ignore = [
"UP032",
]
[tool.ruff.lint.pydocstyle]
ignore-var-parameters = true
[tool.ruff.format]
docstring-code-format = true