Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions init/generate_logo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
4 changes: 3 additions & 1 deletion scripts/check_file_length.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/utils/logging_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Loading