From bc7608f8917e2eb5b97a66f628d5741a143f850f Mon Sep 17 00:00:00 2001 From: Vito Sansevero Date: Sat, 14 Jun 2025 15:25:45 -0700 Subject: [PATCH] style: Fix line formatting issues --- kikotools/tools/sampler_combo/node.py | 16 ++++------------ kikotools/tools/seed_history/logic.py | 1 - kikotools/tools/width_height_selector/node.py | 13 ++++++++----- 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/kikotools/tools/sampler_combo/node.py b/kikotools/tools/sampler_combo/node.py index fb004d6..d883bb9 100644 --- a/kikotools/tools/sampler_combo/node.py +++ b/kikotools/tools/sampler_combo/node.py @@ -156,9 +156,7 @@ class SamplerComboNode(ComfyAssetsBaseNode): Returns: Dictionary with min, max, and default steps """ - min_steps, max_steps, default_steps = get_recommended_steps_range( - sampler_name - ) + min_steps, max_steps, default_steps = get_recommended_steps_range(sampler_name) return { "min": min_steps, "max": max_steps, @@ -204,12 +202,8 @@ class SamplerComboNode(ComfyAssetsBaseNode): "scheduler": scheduler, "steps": steps, "cfg": cfg, - "valid": validate_sampler_settings( - sampler_name, scheduler, steps, cfg - ), - "scheduler_suggestions": self.get_scheduler_suggestions( - sampler_name - ), + "valid": validate_sampler_settings(sampler_name, scheduler, steps, cfg), + "scheduler_suggestions": self.get_scheduler_suggestions(sampler_name), "steps_rec": self.get_steps_recommendation(sampler_name), "cfg_rec": self.get_cfg_recommendation(sampler_name), } @@ -220,9 +214,7 @@ class SamplerComboNode(ComfyAssetsBaseNode): # Add performance assessment steps_rec = self.get_steps_recommendation(sampler_name) - analysis["steps_optimal"] = ( - steps_rec["min"] <= steps <= steps_rec["max"] - ) + analysis["steps_optimal"] = steps_rec["min"] <= steps <= steps_rec["max"] cfg_rec = self.get_cfg_recommendation(sampler_name) analysis["cfg_optimal"] = cfg_rec["min"] <= cfg <= cfg_rec["max"] diff --git a/kikotools/tools/seed_history/logic.py b/kikotools/tools/seed_history/logic.py index 6f80713..c5fde46 100644 --- a/kikotools/tools/seed_history/logic.py +++ b/kikotools/tools/seed_history/logic.py @@ -107,7 +107,6 @@ def filter_duplicate_seeds( return False current_time = time.time() * 1000 # Convert to milliseconds - dedup_window_sec = dedup_window_ms / 1000.0 # Check most recent entry for duplicates within window latest_entry = history[0] diff --git a/kikotools/tools/width_height_selector/node.py b/kikotools/tools/width_height_selector/node.py index 631bb97..8ca80c4 100644 --- a/kikotools/tools/width_height_selector/node.py +++ b/kikotools/tools/width_height_selector/node.py @@ -35,9 +35,10 @@ class WidthHeightSelectorNode(ComfyAssetsBaseNode): preset_keys, { "default": "custom", - "tooltip": "Select from optimized resolution presets or use custom dimensions. " - "SDXL presets are ~1MP, FLUX presets are higher resolution, " - "Ultra-wide presets support modern aspect ratios.", + "tooltip": "Select from optimized resolution presets or use " + "custom dimensions. SDXL presets are ~1MP, FLUX presets are " + "higher resolution, Ultra-wide presets support modern " + "aspect ratios.", }, ), "width": ( @@ -48,7 +49,8 @@ class WidthHeightSelectorNode(ComfyAssetsBaseNode): "max": 8192, "step": 8, "tooltip": "Custom width in pixels (must be multiple of 8). " - "Used when preset is 'custom' or as fallback for invalid presets.", + "Used when preset is 'custom' or as fallback for invalid " + "presets.", }, ), "height": ( @@ -59,7 +61,8 @@ class WidthHeightSelectorNode(ComfyAssetsBaseNode): "max": 8192, "step": 8, "tooltip": "Custom height in pixels (must be multiple of 8). " - "Used when preset is 'custom' or as fallback for invalid presets.", + "Used when preset is 'custom' or as fallback for invalid " + "presets.", }, ), }