diff --git a/endpoint.py b/endpoint.py index 4254829..307a44d 100644 --- a/endpoint.py +++ b/endpoint.py @@ -403,7 +403,7 @@ def render_table(table_dict: dict[str, Any], sort=True, title=None): if "dependencies" in item: table_rows += f"{name}" table_rows += ( - f"{dependencies_button(name,item['dependencies'])}" + f"{dependencies_button(name, item['dependencies'])}" ) table_rows += "" diff --git a/env.nu b/env.nu index 7b3be66..243b681 100644 --- a/env.nu +++ b/env.nu @@ -95,6 +95,7 @@ export def "comfy update" [ # preparing root for pull if not $clean { + git checkout pyproject.toml cd $models # find and store all symlinks let links = (ls -la | @@ -150,7 +151,10 @@ export def "comfy update" [ log info "Linking back the models" if not $clean { + rm pyproject.toml + cp pyproject-mel.toml pyproject.toml cd $models + # resymlink them open links.nuon | each {|p| link -a $p.target $p.name } } else { @@ -211,6 +215,7 @@ def --env path-add [pth] { export-env { + $env.PYTHONUTF8 = 1 $env.COMFY_MTB = ("." | path expand) # $env.CUDA_ROOT = 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\' diff --git a/install.py b/install.py index 7cc3db1..b343db8 100644 --- a/install.py +++ b/install.py @@ -409,7 +409,7 @@ def main(): args = parser.parse_args() - print_formatted(f"Detected environment: {apply_color(mode,'cyan')}") + print_formatted(f"Detected environment: {apply_color(mode, 'cyan')}") if args.path: clone_dir = Path(args.path) diff --git a/pyproject.toml b/pyproject.toml index e921562..cb734d9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta" name = "comfy-mtb" version = "0.2.1" description = "Animation oriented nodes pack for ComfyUI." -license = "MIT" +license = { text = "MIT" } readme = "README.md" # repository = "" # url = "https://github.com/melMass/comfy_mtb" @@ -150,6 +150,9 @@ show_contexts = true [tool.ruff] line-length = 79 +extend-exclude = ["./docs/conf.py", "notebooks", "stubs"] + +[tool.ruff.lint] select = ["A", "B", "C", "D", "E", "F", "FBT", "I", "N", "S", "SIM", "UP", "W"] # NOTE: # D102 - undocumented-public-method (noisy) @@ -157,16 +160,14 @@ select = ["A", "B", "C", "D", "E", "F", "FBT", "I", "N", "S", "SIM", "UP", "W"] # D100 - undocumented-public-module (noisy) # N802 - invalid-function-name (forced by comfy's arch) ignore = ["D103", "D102", "D100", "N802"] -# exclude auto generated file -extend-exclude = ["./docs/conf.py"] -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] # imported but unused "__init__.py" = ["F401"] # use of assert detected "tests/*" = ["S101"] -[tool.ruff.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = "numpy" [tool.mypy]