From d4437495373df139c23419c8b6cd8d225ff9168f Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Fri, 25 Jul 2025 12:48:37 -0300 Subject: [PATCH] Adapted the project description to the obsolete format comfy-cli enforces deprecated practices. --- pyproject.toml | 41 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1e05978..3612707 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,8 +5,12 @@ Miscellaneous nodes for image manipulation. Currently just download image with bypass, so you can create workflows including image examples. No extra dependencies, just an internal module. """ -dynamic = ["version"] -license = "GPL-3.0-or-later" +# This is the modern Python mechanism, but not supported +# dynamic = ["version"] +# license = "GPL-3.0-or-later" +# Only this is supported :-( +version = "1.1.0" +license = { file = "LICENSE" } dependencies = ["seconohe"] [project.urls] @@ -18,3 +22,36 @@ DisplayName = "Image Misc" [tool.setuptools.dynamic] version = {attr = "nodes.__version__"} + +# ####################################### +# MyPy (well, yours, useless hinting) +# ####################################### +[tool.mypy] +# Basic configuration +python_version = "3.11" +warn_return_any = true +warn_unused_ignores = true +mypy_path = "src/" + +# This is often needed when starting out, especially with libraries that lack stubs +ignore_missing_imports = true + +# You can get stricter over time by removing ignore_missing_imports +# and setting flags like these: +# disallow_untyped_defs = true +# disallow_any_unimported = true + +# Tell mypy to ignore errors from third-party libraries if they are not typed +[[tool.mypy.overrides]] +module = [ + "torch.*", + "torchaudio.*", + "pytest.*", + "cv2.*", + "colorama.*", + "tqdm.*", + "requests.*", + "comfy.*", # For comfy.utils + "server.*" # For server.PromptServer +] +ignore_missing_imports = true