Files
darth-veitcher-comfydv/pyproject.toml
T
darth-veitcher 130c57f88b Add comprehensive pytest test suite and fix FormatString node issues
- Fixed Jinja2 regex pattern to handle spaces around filters ({{ var | filter }})
- Added null safety in IS_CHANGED method for empty/None templates
- Restored dynamic output functionality for variable chaining
- Created 47 comprehensive tests with 78% coverage on format_string.py
- Set up test infrastructure with ComfyUI dependency mocking
- Used importlib to bypass package imports during testing
- Added conditional imports in root __init__.py for test compatibility
- Configured pytest in pyproject.toml (removed outdated pytest.ini)
- Added pytest and pytest-cov to dev dependencies
- Updated .gitignore for test artifacts
- Removed deprecated model_unload.py
2025-11-05 11:59:31 +00:00

62 lines
1.3 KiB
TOML

[project]
name = "comfydv"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
authors = [
{ name = "darth-veitcher", email = "1722315+darth-veitcher@users.noreply.github.com" }
]
requires-python = ">=3.11"
dependencies = [
"colorama>=0.4.6",
"jinja2>=3.1.6",
"rich>=14.2.0",
"termcolor>=2.5.0",
]
[project.scripts]
comfydv = "comfydv:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"aiohttp>=3.13.2",
"pytest>=8.4.2",
"pytest-cov>=6.0.0",
"torch>=2.9.0",
"torchvision>=0.24.0",
]
docs = [
"mkdocs>=1.6.1",
"mkdocs-gen-files>=0.5.0",
"mkdocs-literate-nav>=0.6.2",
"mkdocs-material>=9.6.9",
"mkdocs-section-index>=0.3.9",
"mkdocstrings[python]>=0.29.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
# Note: Root __init__.py is excluded to avoid ComfyUI import issues during testing
norecursedirs = [".git", ".venv", "htmlcov", "docs"]
addopts = [
"-v",
"--strict-markers",
"--tb=short",
"--cov=src/comfydv",
"--cov-report=term-missing",
"--cov-report=html",
"--ignore=__init__.py",
]
markers = [
"unit: Unit tests",
"integration: Integration tests",
"slow: Slow tests",
]