- Reject invalid configs in validate_inputs instead of mid-execution: Strict-mode multiple_of above max_res, out-of-range min_res/max_res/ multiple_of, and unknown constraint modes - Share the resolution and multiple_of bounds between define_schema() and validate_inputs() so the widget and the queue-time check cannot drift - Cap the min-res pixel budget at an absolute 64 MP, floored at max_res squared; the multiplier alone permitted ~12 GB outputs at max_res=8192 - Warn on large upscales in Strict mode as well as min-res mode - Pin GitHub Actions by commit SHA on node24-native majors; drop issues:write from the publish workflow and set contents:read on both - Pin Comfy-Org/publish-node-action to the commit @v1 resolves to; the 1.0.1 tag calls `comfy tracking disable`, removed from comfy-cli - Add requirements-ci.txt with pip caching; add ruff config and a CI lint step - Add schema-contract, tooltip, budget, crop-guard and validation tests - Replace typing.Tuple with tuple - Bump version to 2.4.1
39 lines
1.1 KiB
TOML
39 lines
1.1 KiB
TOML
[project]
|
|
name = "constrainresolution"
|
|
description = "Resize images to fit min/max resolution limits with dimensions guaranteed divisible by 2/8/16/32/64. Aspect-ratio-preserving resize with smart cropping — ideal for image-to-image and image-to-video workflows."
|
|
version = "2.4.1"
|
|
license = {file = "LICENSE"}
|
|
requires-python = ">=3.10"
|
|
dependencies = []
|
|
|
|
[project.urls]
|
|
Repository = "https://github.com/EnragedAntelope/ComfyUI-ConstrainResolution"
|
|
# Used by Comfy Registry https://comfyregistry.org
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
addopts = "--import-mode=importlib"
|
|
|
|
[tool.ruff]
|
|
# Long descriptive strings (tooltips, error messages) run past the 88-char
|
|
# default; 130 is the widest line actually in the tree.
|
|
line-length = 130
|
|
|
|
[tool.ruff.lint]
|
|
# Pyflakes + pycodestyle errors + isort + pyupgrade + flake8-bugbear.
|
|
# Pinned explicitly so a new ruff release cannot silently add rules and fail CI.
|
|
select = ["E", "F", "I", "UP", "B"]
|
|
|
|
[tool.comfy]
|
|
PublisherId = "enragedantelope"
|
|
DisplayName = "ComfyUI-ConstrainResolution"
|
|
Icon = ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|