Convert formatting to use ruff instead of yapf + isort (#26247)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Harry Mellor
2025-10-05 07:06:22 -07:00
committed by GitHub
parent 17edd8a807
commit d6953beb91
1508 changed files with 115205 additions and 94107 deletions
+6 -6
View File
@@ -26,11 +26,11 @@ class KVPipeBase(ABC):
@abstractmethod
def send_tensor(self, tensor: Optional[torch.Tensor]) -> None:
"""Send a tensor, or None, via the pipe.
Need to support sending None -- important for error handling.
TODO: add a `key` argument so that we can use traditional
key-value database as the distributed communication mechanism behind
TODO: add a `key` argument so that we can use traditional
key-value database as the distributed communication mechanism behind
the pipe.
Args:
@@ -46,7 +46,7 @@ class KVPipeBase(ABC):
"""Receive a tensor (can be None) from the pipeline.
Returns:
Optional[torch.Tensor]: The tensor received from the pipeline. Can
Optional[torch.Tensor]: The tensor received from the pipeline. Can
be None.
Raises:
@@ -58,7 +58,7 @@ class KVPipeBase(ABC):
def close(self) -> None:
"""Close the pipeline and release resources.
This method is responsible for closing the communication pipeline
This method is responsible for closing the communication pipeline
and releasing any resources associated with it.
Raises: