Add custom nodes, Civitai loras (LFS), and vast.ai setup script
Some checks failed
Python Linting / Run Ruff (push) Has been cancelled
Python Linting / Run Pylint (push) Has been cancelled
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.10, [self-hosted Linux], stable) (push) Has been cancelled
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.11, [self-hosted Linux], stable) (push) Has been cancelled
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.12, [self-hosted Linux], stable) (push) Has been cancelled
Full Comfy CI Workflow Runs / test-unix-nightly (12.1, , linux, 3.11, [self-hosted Linux], nightly) (push) Has been cancelled
Execution Tests / test (macos-latest) (push) Has been cancelled
Execution Tests / test (ubuntu-latest) (push) Has been cancelled
Execution Tests / test (windows-latest) (push) Has been cancelled
Test server launches without errors / test (push) Has been cancelled
Unit Tests / test (macos-latest) (push) Has been cancelled
Unit Tests / test (ubuntu-latest) (push) Has been cancelled
Unit Tests / test (windows-2022) (push) Has been cancelled

Includes 30 custom nodes committed directly, 7 Civitai-exclusive
loras stored via Git LFS, and a setup script that installs all
dependencies and downloads HuggingFace-hosted models on vast.ai.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-09 00:55:26 +00:00
parent 2b70ab9ad0
commit f09734b0ee
2274 changed files with 748556 additions and 3 deletions

View File

@@ -0,0 +1 @@
[pytest]

View File

@@ -0,0 +1,69 @@
from was_mock import was_text_sort
def test_empty_text():
assert was_text_sort() == ""
def test_empty_text_with_separator_override():
assert was_text_sort(separator="|") == ""
def test_already_sorted_text():
assert was_text_sort("already, sorted, text") == "already, sorted, text"
def test_already_sorted_text_with_separator_override():
assert was_text_sort("already, sorted, text", separator="|") == "already, sorted, text"
def test_with_alternative_separator():
assert was_text_sort("test | with | alternative | separator", separator=" | ") == "alternative | separator | test | with"
def test_with_trailing_separators():
assert was_text_sort("test, with, trailing, separator,") == "separator, test, trailing, with"
def test_with_tabs():
assert was_text_sort("test,\t without, \tweights") == "test, weights, without"
def test_with_linefeed_newlines():
assert was_text_sort("test,\n without, \nweights") == "test, weights, without"
def test_with_macos_pre_cheetah_newlines():
assert was_text_sort("test,\r without, \rweights") == "test, weights, without"
def test_with_windows_newlines():
assert was_text_sort("test,\r\n without, \r\nweights") == "test, weights, without"
def test_without_weights():
assert was_text_sort("test, without, weights") == "test, weights, without"
def test_with_weights():
assert was_text_sort("(test:1), (with:2.0), (weights:3.1)") == "(test:1), (weights:3.1), (with:2.0)"
def test_with_some_weights():
assert was_text_sort("(test:1), with, some, (weights:3.1)") == "some, (test:1), (weights:3.1), with"
def test_with_half_weights():
assert was_text_sort("(test:1), with, half (weights:3.1)") == "half (weights:3.1), (test:1), with"
# ASCII "_" is after uppercase and before lowercase letters
def test_with_wildcards():
assert was_text_sort("test, with, __wildcards__") == "__wildcards__, test, with"
def test_with_weighted_wildcards():
assert was_text_sort("test, (with:2), (__wildcards__:3)") == "(__wildcards__:3), test, (with:2)"
# ASCII "{" is after all letters
def test_with_dynamic_prompts():
assert was_text_sort("test, {with|dynamic|prompts}") == "test, {with|dynamic|prompts}"
def test_with_weighted_dynamic_prompts():
assert was_text_sort("(test:1.1), with, ({weighted|dynamic|prompts}:0.9)") == "(test:1.1), with, ({weighted|dynamic|prompts}:0.9)"
def test_with_embeddings():
assert was_text_sort("test, with, embedding:my_embed.pt") == "embedding:my_embed.pt, test, with"
def test_with_lora():
assert was_text_sort("test, with, lora:my_lora.safetensors") == "lora:my_lora.safetensors, test, with"
def test_with_grouped_weights():
assert was_text_sort("(test, with:1), (grouped, weights:2.1)") == "(grouped, weights:2.1), (test, with:1)"
def test_with_nested_weights():
assert was_text_sort("(test, (with:1.2):1.1), ((nested:1), weights:2)") == "((nested:1), weights:2), (test, (with:1.2):1.1)"

View File

@@ -0,0 +1,11 @@
# TODO: In case anyone that knows how to set up PyTest correctly comes around, this file can be scrapped.
from pathlib import Path
TEXT_TYPE = "STRING"
CLASS_NAME = "WAS_Text_Sort"
class_string = f"class {CLASS_NAME}:"
exec(class_string + Path("../WAS_Node_Suite.py").read_text().split(class_string)[1].split("class ")[0])
def was_text_sort(text = "", separator = WAS_Text_Sort.INPUT_TYPES()["required"]["separator"][1]["default"]):
return WAS_Text_Sort().sort(text, separator)[0]