From 259451ff10990b58ab8d142f3ab563fb771e413e Mon Sep 17 00:00:00 2001 From: Mati-ur-rehman-017 Date: Mon, 10 Mar 2025 14:44:24 +0500 Subject: [PATCH] .tomlFixes --- apis/python/node/pyproject.toml | 2 +- binaries/cli/pyproject.toml | 2 +- .../src/template/python/__node-name__/pyproject.toml | 4 ++-- .../src/template/python/listener/listener-template.py | 5 +++-- .../cli/src/template/python/talker/talker-template.py | 11 ++++++----- node-hub/dora-argotranslate/pyproject.toml | 3 +-- node-hub/dora-distil-whisper/pyproject.toml | 3 +-- node-hub/dora-echo/pyproject.toml | 3 +-- node-hub/dora-internvl/pyproject.toml | 3 +-- node-hub/dora-ios-lidar/pyproject.toml | 3 +-- node-hub/dora-keyboard/pyproject.toml | 3 +-- node-hub/dora-kit-car/pyproject.toml | 3 +-- node-hub/dora-kokoro-tts/pyproject.toml | 3 +-- node-hub/dora-microphone/pyproject.toml | 3 +-- node-hub/dora-object-to-pose/pyproject.toml | 3 +-- node-hub/dora-openai-server/pyproject.toml | 1 - node-hub/dora-opus/pyproject.toml | 3 +-- node-hub/dora-outtetts/pyproject.toml | 3 +-- node-hub/dora-parler/pyproject.toml | 3 +-- node-hub/dora-piper/pyproject.toml | 3 +-- node-hub/dora-pyaudio/pyproject.toml | 3 +-- node-hub/dora-pyorbbecksdk/pyproject.toml | 2 +- node-hub/dora-pyrealsense/pyproject.toml | 3 +-- node-hub/dora-qwen/pyproject.toml | 3 +-- node-hub/dora-qwen2-5-vl/pyproject.toml | 3 +-- node-hub/dora-qwenvl/pyproject.toml | 3 +-- node-hub/dora-rdt-1b/pyproject.toml | 3 +-- node-hub/dora-reachy2/pyproject.toml | 2 +- node-hub/dora-rerun/pyproject.toml | 3 +-- node-hub/dora-sam2/pyproject.toml | 3 +-- node-hub/dora-ugv/pyproject.toml | 3 +-- node-hub/dora-vad/pyproject.toml | 3 +-- node-hub/dora-yolo/pyproject.toml | 3 +-- node-hub/llama-factory-recorder/pyproject.toml | 3 +-- node-hub/opencv-plot/pyproject.toml | 3 +-- node-hub/opencv-video-capture/pyproject.toml | 3 +-- node-hub/pyarrow-assert/pyproject.toml | 3 +-- node-hub/pyarrow-sender/pyproject.toml | 3 +-- node-hub/terminal-input/pyproject.toml | 3 +-- 39 files changed, 46 insertions(+), 76 deletions(-) diff --git a/apis/python/node/pyproject.toml b/apis/python/node/pyproject.toml index e91fcba9..afe52a64 100644 --- a/apis/python/node/pyproject.toml +++ b/apis/python/node/pyproject.toml @@ -20,4 +20,4 @@ features = ["pyo3/extension-module"] [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/binaries/cli/pyproject.toml b/binaries/cli/pyproject.toml index 65622278..bb8bd86e 100644 --- a/binaries/cli/pyproject.toml +++ b/binaries/cli/pyproject.toml @@ -16,4 +16,4 @@ features = ["python", "pyo3/extension-module"] [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/binaries/cli/src/template/python/__node-name__/pyproject.toml b/binaries/cli/src/template/python/__node-name__/pyproject.toml index 6aaa27f9..ad65125a 100644 --- a/binaries/cli/src/template/python/__node-name__/pyproject.toml +++ b/binaries/cli/src/template/python/__node-name__/pyproject.toml @@ -17,5 +17,5 @@ __node-name__ = "__node_name__.main:main" [tool.ruff.lint] extend-select = [ - "D", # pydocstyle -] \ No newline at end of file + "D", +] diff --git a/binaries/cli/src/template/python/listener/listener-template.py b/binaries/cli/src/template/python/listener/listener-template.py index b94fa167..140718f2 100644 --- a/binaries/cli/src/template/python/listener/listener-template.py +++ b/binaries/cli/src/template/python/listener/listener-template.py @@ -1,13 +1,14 @@ -from dora import Node +"""Module to process node input events and print received messages.""" +from dora import Node def main(): + """Listen for input events and print received messages.""" node = Node() for event in node: if event["type"] == "INPUT": message = event["value"][0].as_py() print(f"""I heard {message} from {event["id"]}""") - if __name__ == "__main__": main() diff --git a/binaries/cli/src/template/python/talker/talker-template.py b/binaries/cli/src/template/python/talker/talker-template.py index f99b2792..0bc2926b 100644 --- a/binaries/cli/src/template/python/talker/talker-template.py +++ b/binaries/cli/src/template/python/talker/talker-template.py @@ -1,20 +1,21 @@ +"""Module to handle node input events and send speech output.""" + import pyarrow as pa from dora import Node - def main(): + """Process node input events and send speech output.""" node = Node() for event in node: if event["type"] == "INPUT": print( f"""Node received: - id: {event["id"]}, - value: {event["value"]}, - metadata: {event["metadata"]}""", + id: {event["id"]}, + value: {event["value"]}, + metadata: {event["metadata"]}""", ) node.send_output("speech", pa.array(["Hello World"])) - if __name__ == "__main__": main() diff --git a/node-hub/dora-argotranslate/pyproject.toml b/node-hub/dora-argotranslate/pyproject.toml index b9dc3910..863e2b62 100644 --- a/node-hub/dora-argotranslate/pyproject.toml +++ b/node-hub/dora-argotranslate/pyproject.toml @@ -19,8 +19,7 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] dora-argotranslate = "dora_argotranslate.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-distil-whisper/pyproject.toml b/node-hub/dora-distil-whisper/pyproject.toml index f02dfcd3..87047d6f 100644 --- a/node-hub/dora-distil-whisper/pyproject.toml +++ b/node-hub/dora-distil-whisper/pyproject.toml @@ -28,8 +28,7 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] dora-distil-whisper = "dora_distil_whisper.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-echo/pyproject.toml b/node-hub/dora-echo/pyproject.toml index 0df597de..42b810c7 100644 --- a/node-hub/dora-echo/pyproject.toml +++ b/node-hub/dora-echo/pyproject.toml @@ -18,8 +18,7 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] dora-echo = "dora_echo.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-internvl/pyproject.toml b/node-hub/dora-internvl/pyproject.toml index 8a676e4e..336b6a80 100644 --- a/node-hub/dora-internvl/pyproject.toml +++ b/node-hub/dora-internvl/pyproject.toml @@ -31,8 +31,7 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] dora-internvl = "dora_internvl.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-ios-lidar/pyproject.toml b/node-hub/dora-ios-lidar/pyproject.toml index 0015fad7..0534dab7 100644 --- a/node-hub/dora-ios-lidar/pyproject.toml +++ b/node-hub/dora-ios-lidar/pyproject.toml @@ -15,8 +15,7 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] dora-ios-lidar = "dora_ios_lidar.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-keyboard/pyproject.toml b/node-hub/dora-keyboard/pyproject.toml index 9608337d..b8c941d7 100644 --- a/node-hub/dora-keyboard/pyproject.toml +++ b/node-hub/dora-keyboard/pyproject.toml @@ -24,8 +24,7 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] dora-keyboard = "dora_keyboard.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-kit-car/pyproject.toml b/node-hub/dora-kit-car/pyproject.toml index e42caafa..4522f091 100644 --- a/node-hub/dora-kit-car/pyproject.toml +++ b/node-hub/dora-kit-car/pyproject.toml @@ -16,8 +16,7 @@ scripts = { "dora-kit-car" = "dora_kit_car:py_main" } [tool.maturin] features = ["python", "pyo3/extension-module"] - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-kokoro-tts/pyproject.toml b/node-hub/dora-kokoro-tts/pyproject.toml index 3b501727..1ada9672 100644 --- a/node-hub/dora-kokoro-tts/pyproject.toml +++ b/node-hub/dora-kokoro-tts/pyproject.toml @@ -15,8 +15,7 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] dora-kokoro-tts = "dora_kokoro_tts.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-microphone/pyproject.toml b/node-hub/dora-microphone/pyproject.toml index b01ce751..5210d284 100644 --- a/node-hub/dora-microphone/pyproject.toml +++ b/node-hub/dora-microphone/pyproject.toml @@ -24,8 +24,7 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] dora-microphone = "dora_microphone.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-object-to-pose/pyproject.toml b/node-hub/dora-object-to-pose/pyproject.toml index 43c909d6..77494fc0 100644 --- a/node-hub/dora-object-to-pose/pyproject.toml +++ b/node-hub/dora-object-to-pose/pyproject.toml @@ -15,8 +15,7 @@ scripts = { "dora-object-to-pose" = "dora_object_to_pose:py_main" } [tool.maturin] features = ["python", "pyo3/extension-module"] - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-openai-server/pyproject.toml b/node-hub/dora-openai-server/pyproject.toml index 21fb801c..79068f63 100644 --- a/node-hub/dora-openai-server/pyproject.toml +++ b/node-hub/dora-openai-server/pyproject.toml @@ -27,7 +27,6 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] dora-openai-server = "dora_openai_server.main:main" - [tool.ruff.lint] extend-select = ["I","D"] diff --git a/node-hub/dora-opus/pyproject.toml b/node-hub/dora-opus/pyproject.toml index 218c8116..f0fa8505 100644 --- a/node-hub/dora-opus/pyproject.toml +++ b/node-hub/dora-opus/pyproject.toml @@ -28,8 +28,7 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] dora-opus = "dora_opus.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-outtetts/pyproject.toml b/node-hub/dora-outtetts/pyproject.toml index aa689372..fbb4e533 100644 --- a/node-hub/dora-outtetts/pyproject.toml +++ b/node-hub/dora-outtetts/pyproject.toml @@ -28,8 +28,7 @@ llama-cpp-python = [ [project.scripts] dora-outtetts = "dora_outtetts.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-parler/pyproject.toml b/node-hub/dora-parler/pyproject.toml index 445ef097..34cb148f 100644 --- a/node-hub/dora-parler/pyproject.toml +++ b/node-hub/dora-parler/pyproject.toml @@ -30,8 +30,7 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] dora-parler = "dora_parler.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-piper/pyproject.toml b/node-hub/dora-piper/pyproject.toml index 6cb977bb..f12d589b 100644 --- a/node-hub/dora-piper/pyproject.toml +++ b/node-hub/dora-piper/pyproject.toml @@ -15,8 +15,7 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] dora-piper = "dora_piper.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-pyaudio/pyproject.toml b/node-hub/dora-pyaudio/pyproject.toml index 906b69f4..5aee6c44 100644 --- a/node-hub/dora-pyaudio/pyproject.toml +++ b/node-hub/dora-pyaudio/pyproject.toml @@ -20,8 +20,7 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] dora-pyaudio = "dora_pyaudio.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-pyorbbecksdk/pyproject.toml b/node-hub/dora-pyorbbecksdk/pyproject.toml index c449e354..c9563869 100644 --- a/node-hub/dora-pyorbbecksdk/pyproject.toml +++ b/node-hub/dora-pyorbbecksdk/pyproject.toml @@ -22,4 +22,4 @@ dora-pyorbbecksdk = "dora_pyorbbecksdk.main:main" [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-pyrealsense/pyproject.toml b/node-hub/dora-pyrealsense/pyproject.toml index 2110ccac..31f02624 100644 --- a/node-hub/dora-pyrealsense/pyproject.toml +++ b/node-hub/dora-pyrealsense/pyproject.toml @@ -21,8 +21,7 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] dora-pyrealsense = "dora_pyrealsense.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-qwen/pyproject.toml b/node-hub/dora-qwen/pyproject.toml index 67107eaa..7f27c11b 100644 --- a/node-hub/dora-qwen/pyproject.toml +++ b/node-hub/dora-qwen/pyproject.toml @@ -42,8 +42,7 @@ explicit = true [project.scripts] dora-qwen = "dora_qwen.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-qwen2-5-vl/pyproject.toml b/node-hub/dora-qwen2-5-vl/pyproject.toml index c438ddaa..00ee58a0 100644 --- a/node-hub/dora-qwen2-5-vl/pyproject.toml +++ b/node-hub/dora-qwen2-5-vl/pyproject.toml @@ -49,8 +49,7 @@ dora-qwen2-5-vl = "dora_qwen2_5_vl.main:main" requires = ["setuptools", "setuptools-scm"] build-backend = "setuptools.build_meta" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-qwenvl/pyproject.toml b/node-hub/dora-qwenvl/pyproject.toml index a4a749b1..9f774db4 100644 --- a/node-hub/dora-qwenvl/pyproject.toml +++ b/node-hub/dora-qwenvl/pyproject.toml @@ -36,8 +36,7 @@ transformers = { git = "https://github.com/huggingface/transformers" } [project.scripts] dora-qwenvl = "dora_qwenvl.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-rdt-1b/pyproject.toml b/node-hub/dora-rdt-1b/pyproject.toml index 4cf09f51..127ae5e4 100644 --- a/node-hub/dora-rdt-1b/pyproject.toml +++ b/node-hub/dora-rdt-1b/pyproject.toml @@ -48,8 +48,7 @@ exclude = ["dora_rdt_1b/RoboticsDiffusionTransformer"] requires = ["poetry-core>=1.8.0"] build-backend = "poetry.core.masonry.api" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-reachy2/pyproject.toml b/node-hub/dora-reachy2/pyproject.toml index f9da4823..d1218e8f 100644 --- a/node-hub/dora-reachy2/pyproject.toml +++ b/node-hub/dora-reachy2/pyproject.toml @@ -28,4 +28,4 @@ dora-reachy2-head = "dora_reachy2.head:main" [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-rerun/pyproject.toml b/node-hub/dora-rerun/pyproject.toml index 60c53398..792a59ad 100644 --- a/node-hub/dora-rerun/pyproject.toml +++ b/node-hub/dora-rerun/pyproject.toml @@ -19,8 +19,7 @@ scripts = { "dora-rerun" = "dora_rerun:py_main" } [tool.maturin] features = ["python", "pyo3/extension-module"] - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-sam2/pyproject.toml b/node-hub/dora-sam2/pyproject.toml index 3428d26a..c04e7419 100644 --- a/node-hub/dora-sam2/pyproject.toml +++ b/node-hub/dora-sam2/pyproject.toml @@ -20,8 +20,7 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] dora-sam2 = "dora_sam2.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-ugv/pyproject.toml b/node-hub/dora-ugv/pyproject.toml index 73ed1841..f5374ba9 100644 --- a/node-hub/dora-ugv/pyproject.toml +++ b/node-hub/dora-ugv/pyproject.toml @@ -16,8 +16,7 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] dora-ugv = "dora_ugv.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-vad/pyproject.toml b/node-hub/dora-vad/pyproject.toml index 1e2aeae5..1c16831a 100644 --- a/node-hub/dora-vad/pyproject.toml +++ b/node-hub/dora-vad/pyproject.toml @@ -16,8 +16,7 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] dora-vad = "dora_vad.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/dora-yolo/pyproject.toml b/node-hub/dora-yolo/pyproject.toml index d8d4de5e..929612d7 100644 --- a/node-hub/dora-yolo/pyproject.toml +++ b/node-hub/dora-yolo/pyproject.toml @@ -18,8 +18,7 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] dora-yolo = "dora_yolo.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/llama-factory-recorder/pyproject.toml b/node-hub/llama-factory-recorder/pyproject.toml index e23f3b78..cf1dd1ff 100644 --- a/node-hub/llama-factory-recorder/pyproject.toml +++ b/node-hub/llama-factory-recorder/pyproject.toml @@ -22,8 +22,7 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] llama-factory-recorder = "llama_factory_recorder.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/opencv-plot/pyproject.toml b/node-hub/opencv-plot/pyproject.toml index 2fb9ffa8..1180bfb2 100644 --- a/node-hub/opencv-plot/pyproject.toml +++ b/node-hub/opencv-plot/pyproject.toml @@ -18,8 +18,7 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] opencv-plot = "opencv_plot.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/opencv-video-capture/pyproject.toml b/node-hub/opencv-video-capture/pyproject.toml index c9269db7..7dce80c5 100644 --- a/node-hub/opencv-video-capture/pyproject.toml +++ b/node-hub/opencv-video-capture/pyproject.toml @@ -18,8 +18,7 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] opencv-video-capture = "opencv_video_capture.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/pyarrow-assert/pyproject.toml b/node-hub/pyarrow-assert/pyproject.toml index a90b3a45..b1683b52 100644 --- a/node-hub/pyarrow-assert/pyproject.toml +++ b/node-hub/pyarrow-assert/pyproject.toml @@ -19,8 +19,7 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] pyarrow-assert = "pyarrow_assert.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/pyarrow-sender/pyproject.toml b/node-hub/pyarrow-sender/pyproject.toml index 6754e002..ce6f8f2a 100644 --- a/node-hub/pyarrow-sender/pyproject.toml +++ b/node-hub/pyarrow-sender/pyproject.toml @@ -20,8 +20,7 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] pyarrow-sender = "pyarrow_sender.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +] diff --git a/node-hub/terminal-input/pyproject.toml b/node-hub/terminal-input/pyproject.toml index 432e194a..3b406605 100644 --- a/node-hub/terminal-input/pyproject.toml +++ b/node-hub/terminal-input/pyproject.toml @@ -20,8 +20,7 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"] [project.scripts] terminal-input = "terminal_input.main:main" - [tool.ruff.lint] extend-select = [ "D", # pydocstyle -] \ No newline at end of file +]