Skip to content

Commit 8e282c0

Browse files
committed
Add E702 to validation
1 parent 8a1a11d commit 8e282c0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

comfy_cli/command/custom_nodes/command.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -706,13 +706,17 @@ def validate_node_for_publishing():
706706
typer.echo("Running security checks...")
707707
try:
708708
# Run ruff check with security rules and --exit-zero to only warn
709-
cmd = ["ruff", "check", ".", "-q", "--select", "S102,S307", "--exit-zero"]
709+
cmd = ["ruff", "check", ".", "-q", "--select", "S102,S307,E702", "--exit-zero"]
710710
result = subprocess.run(cmd, capture_output=True, text=True)
711711

712712
if result.stdout:
713713
print("[yellow]Security warnings found:[/yellow]")
714714
print(result.stdout)
715-
print("[bold yellow]We will soon disable exec and eval, so this will be an error soon.[/bold yellow]")
715+
print(
716+
"[bold yellow]We will soon disable exec and eval, and multiple statements in a single line, so this will be an error soon.[/bold yellow]"
717+
)
718+
else:
719+
print("[green]✓ All validation checks passed successfully[/green]")
716720

717721
except FileNotFoundError:
718722
print("[red]Ruff is not installed. Please install it with 'pip install ruff'[/red]")
@@ -731,7 +735,7 @@ def validate():
731735
Run validation checks that would be performed during publishing.
732736
"""
733737
validate_node_for_publishing()
734-
print("[green]✓ All validation checks passed successfully[/green]")
738+
# print("[green]✓ All validation checks passed successfully[/green]")
735739

736740

737741
@app.command("publish", help="Publish node to registry")

0 commit comments

Comments
 (0)