diff --git a/init/generate_logo.py b/init/generate_logo.py index eb4cb4c..4d4c2c5 100644 --- a/init/generate_logo.py +++ b/init/generate_logo.py @@ -61,17 +61,6 @@ def remove_greenscreen(img: Image.Image, tolerance: int = 60) -> Image.Image: return Image.fromarray(data) -def reduce_color_variance(img: Image.Image, colors: int = 8) -> Image.Image: - """Reduce color variance by quantizing to a limited palette.""" - if img.mode != "RGBA": - img = img.convert("RGBA") - - # Quantize to reduce color variance - # This will unify similar colors - quantized = img.quantize(colors=colors, method=2) - return quantized.convert("RGBA") - - def invert_colors(img: Image.Image) -> Image.Image: """Invert colors while preserving alpha channel.""" if img.mode != "RGBA": diff --git a/scripts/check_file_length.py b/scripts/check_file_length.py index 29f024a..6e7a320 100644 --- a/scripts/check_file_length.py +++ b/scripts/check_file_length.py @@ -46,7 +46,9 @@ def main() -> int: violations.append((rel, line_count)) if violations: - print(f"File length check failed: {len(violations)} file(s) exceed {max_lines} lines") + print( + f"File length check failed: {len(violations)} file(s) exceed {max_lines} lines" + ) for rel_path, count in sorted(violations): print(f" {rel_path}: {count} lines") print( diff --git a/src/utils/logging_config.py b/src/utils/logging_config.py index ce60bb3..dc5b63e 100644 --- a/src/utils/logging_config.py +++ b/src/utils/logging_config.py @@ -85,7 +85,7 @@ def scrub_sensitive_data(record): # Scrub exception if present exception = record.get("exception") if exception: - type_, value, tb = exception + _, value, _ = exception value_str = str(value) scrubbed_value_str = _SCRUBBER.scrub(value_str)