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/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) diff --git a/test_pydantic_settings.py b/test_pydantic_settings.py new file mode 100644 index 0000000..17284a7 --- /dev/null +++ b/test_pydantic_settings.py @@ -0,0 +1,3 @@ +from common.global_config import global_config + +print("It works!")