From 101ed675e61bc4820aec04010587ddef24ff69af Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sat, 5 Apr 2025 00:33:08 +0900 Subject: [PATCH] fixed: resolve mismatch issue with 'ruff' Python environment https://github.com/Comfy-Org/comfy-cli/issues/255 --- comfy_cli/command/custom_nodes/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy_cli/command/custom_nodes/command.py b/comfy_cli/command/custom_nodes/command.py index f15d6072..b06a9d29 100644 --- a/comfy_cli/command/custom_nodes/command.py +++ b/comfy_cli/command/custom_nodes/command.py @@ -708,7 +708,7 @@ def validate_node_for_publishing(): typer.echo("Running security checks...") try: # Run ruff check with security rules and --exit-zero to only warn - cmd = ["ruff", "check", ".", "-q", "--select", "S102,S307,E702", "--exit-zero"] + cmd = [sys.executable, "-m", "ruff", "check", ".", "-q", "--select", "S102,S307,E702", "--exit-zero"] result = subprocess.run(cmd, capture_output=True, text=True) if result.stdout: