Repository navigation
[Docs] Add pydocstyle to the ruff rules - #52136
Conversation
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
|
Documentation preview: https://vllm--52136.org.readthedocs.build/en/52136/ |
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
|
/ci run |
|
✅ Triggered Buildkite CI #84198 for commit |
Conflicts were resolved by taking main's content for every conflicted file, then re-running `ruff check --fix` and `ruff format` under the pydocstyle config so the docstring changes are regenerated from main's text. The remaining non-autofixable violations (D417/D402/E501) were fixed by hand, reusing the wording this branch had already written where it applied. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
|
/ci run |
|
✅ Triggered Buildkite CI #89319 for commit |
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
|
/ci run |
|
❌ This PR is 2 commits behind upstream |
|
/ci run |
|
✅ Triggered Buildkite CI #89328 for commit |
|
Hi @hmellor, the pre-commit checks have failed. Please run: uv pip install pre-commit>=4.5.1
pre-commit install
pre-commit run --all-filesThen, commit the changes and push to your branch. For future commits, |
Resolve conflict in tests/v1/kv_connector/unit/test_kv_load_failure_recovery.py by taking main's rewrite (the docstring this branch reformatted was removed upstream), and fix new D200/D212 violations in code merged from main. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
|
/ci run |
|
✅ Triggered Buildkite CI #89346 for commit |
Enables the
Druleset in ruff and fixes the resulting violations across the codebase.Config
D100–D107are ignored, so this does not require a docstring on anything that lacks one today. Six more rules are ignored because their remaining violations were either impossible to autofix or actively wrong to autofix:D205,D400,D415D401,D404D301r"""prefixes).Plus
ignore-var-parameters = true(no*args/**kwargsdescriptions required) and atests/**ignore forD417, since test params are mostly pytest fixtures.Changes
The bulk is autofix output for the mechanical rules (
D209,D212,D200,D202,D413, and friends). On top of that, by hand:Args:entries written across 88 files forD417, mostly infused_moe, attention backends, and multimodal models. Several were format bugs rather than missing docs: numpy-styleParameters/----------blocks that ruff's Google parser can't read at all.D400/D415, applied only whereD205doesn't co-fire, so no list items were punctuated.E501regressions fixed. These were introduced by theD212autofix collapsing wrapped summaries onto line 1 and pushing them past 88 chars.D210,D402,D418,D419.Incidental fixes picked up along the way: typos (
videoand,output_dytpe,the m odel) and stale docs naming parameters that no longer exist.