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:
co-authored by
Claude Opus 5
parent
804e5377aa
commit
8c1557a79c
@@ -1,8 +1,6 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
||||
"""
|
||||
Shared test utilities for vLLM IR op correctness tests.
|
||||
"""
|
||||
"""Shared test utilities for vLLM IR op correctness tests."""
|
||||
|
||||
import torch
|
||||
|
||||
|
||||
+2
-2
@@ -34,7 +34,7 @@ def custom_add_op(fake_vllm_ir):
|
||||
|
||||
@_custom_add.register_impl("impl_b", inplace=True)
|
||||
def impl_b(x: torch.Tensor, y: torch.Tensor) -> torch.Tensor:
|
||||
"""Computes x+y+20"""
|
||||
"""Computes x+y+20."""
|
||||
x.add_(y)
|
||||
x.add_(20)
|
||||
return x
|
||||
@@ -101,7 +101,7 @@ def test_no_kw_only_args(fake_vllm_ir):
|
||||
class TestIrOpCustomAdd:
|
||||
# Registration invariants
|
||||
def test_decorated_object(self, custom_add_op):
|
||||
"""Make sure that referring directly to an op is correct"""
|
||||
"""Make sure that referring directly to an op is correct."""
|
||||
_custom_add = custom_add_op
|
||||
assert isinstance(_custom_add, IrOp)
|
||||
assert "_custom_add" in IrOp.registry
|
||||
|
||||
Reference in New Issue
Block a user