From 343be338488e12d00fbfacffc703a827f3b432a4 Mon Sep 17 00:00:00 2001 From: mihncalo Date: Tue, 20 Oct 2026 12:41:45 +0300 Subject: [PATCH 1/2] Raised requires-python from 3.7 to 3.10 and ruff target-version from 39 to 310 to match --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7123b0750..ffe50d244 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta" [project] name = "chakra" -requires-python = ">=3.7" +requires-python = ">=3.10" version = "1.0.0" readme = "README.md" license = {file = "LICENSE.md"} @@ -49,7 +49,7 @@ chakra_trace_link = "chakra.src.trace_link.trace_link:main" chakra_visualizer = "chakra.src.visualizer.visualizer:main" [tool.ruff] -target-version = "py39" +target-version = "py310" line-length = 120 exclude = [ "src/converter/text_converter.py", From 5300b0cdc6241fcc9451fb7f03b62847b540b062 Mon Sep 17 00:00:00 2001 From: mihncalo Date: Thu, 22 Oct 2026 11:17:02 +0300 Subject: [PATCH 2/2] Fixed ruff checks --- setup.py | 1 + src/converter/pytorch_node.py | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index cf2036f1c..1be724b2b 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ from setuptools import setup from setuptools.command.build import build + class build_grpc(build): """ Custom build class to include gRPC build commands. diff --git a/src/converter/pytorch_node.py b/src/converter/pytorch_node.py index cb7bab703..f366421db 100644 --- a/src/converter/pytorch_node.py +++ b/src/converter/pytorch_node.py @@ -47,7 +47,13 @@ class PyTorchNode: pg_name (str): Process Group name for the inter-GPU communication. """ - SUPPORTED_VERSIONS = ["1.0.2-chakra.0.0.4", "1.0.3-chakra.0.0.4", "1.1.0-chakra.0.0.4", "1.1.1-chakra.0.0.4", "1.1.1-chakra.1.0.0"] + SUPPORTED_VERSIONS = [ + "1.0.2-chakra.0.0.4", + "1.0.3-chakra.0.0.4", + "1.1.0-chakra.0.0.4", + "1.1.1-chakra.0.0.4", + "1.1.1-chakra.1.0.0" + ] def __init__(self, schema: str, node_data: Dict[str, Any]) -> None: """ @@ -218,7 +224,7 @@ def comm_size(self) -> int: int: The calculated communication size. """ comm_size = 0 - for input_value, input_type in zip(self.inputs["values"], self.inputs["types"]): + for input_value, input_type in zip(self.inputs["values"], self.inputs["types"], strict=False): if "Tensor" in input_type: if input_type.startswith("GenericList[Tensor"): for inner_value in input_value: