Files
Little-God1983-ComfyUI-AI2G…/pyproject.toml
T
Chris dc914202e6 refactor: extract prompt batch parse/select into comfy-free core
Move _parse_prompts/_select/DEFAULT_PROMPTS_JSON out of nodes/prompt_batch.py
(which imports comfy_api) into a pure nodes/prompt_batch_core.py so the parsing
logic can be unit tested and reused by the upcoming Civitai metadata tracer
without a ComfyUI install. prompt_batch.py now imports the three names;
behavior is unchanged (select_prompt keeps all three of the original _select's
fallback logger.warning calls, so logging is identical too).

Also fix pytest collection: the repo root doubles as the ComfyUI extension
package (its own __init__.py does relative imports), which made pytest wrap
the repo root in a Package collector and fail importing it. Add
--confcutdir=tests/testpaths in pyproject.toml so `pytest tests/...` (and bare
`pytest`) work without needing a ComfyUI install.
2026-07-12 11:17:06 +02:00

29 lines
1.1 KiB
TOML

[project]
name = "comfyui-ai2go-utils"
description = "ComfyUI utility nodes by AIKnowledge2Go."
version = "1.4.0"
license = { file = "LICENSE" }
dependencies = [
"pillow>=10.3.0",
]
[project.urls]
Repository = "https://github.com/Little-God1983/ComfyUI-AI2Go-Utils"
# Used by Comfy Registry https://comfyregistry.org
[tool.pytest.ini_options]
# The repo root doubles as the ComfyUI extension package (its own __init__.py does
# `from .nodes... import ...`). Without this, pytest's default collection wraps the repo root in
# a Package collector (any dir with __init__.py) and imports that __init__.py directly to set it
# up, which breaks: those relative imports need `comfy_api`, not installed in a bare test run.
# Capping confcutdir at tests/ keeps the repo root out of that collector chain (run pytest from
# the repo root, as documented, so this relative path resolves correctly).
addopts = "--confcutdir=tests"
testpaths = ["tests"]
[tool.comfy]
PublisherId = "littlegod"
DisplayName = "ComfyUI-AI2Go-Utils"
Icon = ""
Banner = "https://raw.githubusercontent.com/Little-God1983/ComfyUI-AI2Go-Utils/main/assets/AI2Go-Banner.jpg"