diff --git a/.ci/windows_nightly_base_files/run_nvidia_gpu_fast.bat b/.ci/windows_nightly_base_files/run_nvidia_gpu_fast.bat deleted file mode 100644 index ca6d6868a..000000000 --- a/.ci/windows_nightly_base_files/run_nvidia_gpu_fast.bat +++ /dev/null @@ -1,2 +0,0 @@ -.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --fast -pause diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 883e23f85..7989444f8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,8 +39,8 @@ jobs: - name: Lint for errors run: | source venv/bin/activate - pylint --rcfile=.pylintrc comfy/ - pylint --rcfile=.pylintrc comfy_extras/ + pylint -j 8 --rcfile=.pylintrc comfy/ + pylint -j 8 --rcfile=.pylintrc comfy_extras/ build_and_execute_linux: environment: "Testing" name: Installation, Unit and Workflow Tests for Linux diff --git a/comfy/cmd/folder_paths.py b/comfy/cmd/folder_paths.py index c29f91cfc..d1ef611f0 100644 --- a/comfy/cmd/folder_paths.py +++ b/comfy/cmd/folder_paths.py @@ -15,7 +15,7 @@ supported_pt_extensions = _supported_pt_extensions # todo: this should be initialized elsewhere if 'main.py' in sys.argv: - base_path = os.path.realpath(os.path.join(os.path.dirname(os.path.realpath(__file__)), "../..")) + base_path = os.path.realpath(os.path.join(os.path.dirname(os.path.realpath(__file__)), "../..")) # pylint: disable=used-before-assignment elif args.cwd is not None: if not os.path.exists(args.cwd): try: diff --git a/comfy_extras/nodes/nodes_svg.py b/comfy_extras/nodes/nodes_svg.py index 4f4f350c2..78e50e5dc 100644 --- a/comfy_extras/nodes/nodes_svg.py +++ b/comfy_extras/nodes/nodes_svg.py @@ -113,8 +113,8 @@ class SVGToImage(CustomNode): try: cleaned_svg = self.clean_svg_string(svg_string) - stream = skia.MemoryStream(cleaned_svg.encode('utf-8'), True) - svg_dom = skia.SVGDOM.MakeFromStream(stream) + stream = skia.MemoryStream(cleaned_svg.encode('utf-8'), True) # pylint: disable=c-extension-no-member + svg_dom = skia.SVGDOM.MakeFromStream(stream) # pylint: disable=c-extension-no-member if svg_dom is None: raise ValueError(f"Failed to parse SVG content for image {i}") @@ -125,9 +125,9 @@ class SVGToImage(CustomNode): width = int(svg_width * scale) height = int(svg_height * scale) - surface = skia.Surface(width, height) + surface = skia.Surface(width, height) # pylint: disable=c-extension-no-member with surface as canvas: - canvas.clear(skia.ColorTRANSPARENT) + canvas.clear(skia.ColorTRANSPARENT) # pylint: disable=c-extension-no-member canvas.scale(scale, scale) svg_dom.render(canvas) @@ -153,7 +153,6 @@ class SVGToImage(CustomNode): if not raster_images: raise ValueError("No valid images were generated from the input SVGs") - # Stack all images into a single batch batch = torch.stack(raster_images) return (batch,)