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
+4 -1
View File
@@ -98,7 +98,8 @@ class WorkerProfiler(ABC):
def step(self) -> None:
"""Update the profiler state at each worker step,
to handle delayed starts and max iteration limits."""
to handle delayed starts and max iteration limits.
"""
if not self._active:
return
@@ -138,6 +139,7 @@ class WorkerProfiler(ABC):
Returns:
True if the step was an active profiling step (data recorded),
False if the step was a warmup step (data discarded).
"""
return True
@@ -354,6 +356,7 @@ class TorchProfilerWrapper(WorkerProfiler):
Returns:
True if the step was an active profiling step (data recorded),
False if the step was a warmup step (data discarded).
"""
if self._uses_schedule:
self.profiler.step()