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
@@ -69,8 +69,7 @@ def _get_populate_write_fn(
class SharedOffloadRegion:
"""
Single mmap-backed memory region shared across all workers for a
"""Single mmap-backed memory region shared across all workers for a
vLLM instance. Workers coordinate via the filesystem: the first worker
to open the file with O_EXCL becomes the creator and calls ftruncate;
the rest open the existing file and wait until it reaches the expected
@@ -264,6 +263,7 @@ class SharedOffloadRegion:
Args:
tensor_page_size: Bytes per chunk for this tensor.
"""
assert self.rank is not None
new_offset = self._worker_offset + tensor_page_size
@@ -313,6 +313,7 @@ class SharedOffloadRegion:
Args:
tensor_page_size: Canonical bytes per chunk for this tensor.
"""
new_offset = self._canonical_offset + tensor_page_size
assert new_offset <= self._row_stride