[loop-generated] [bug] Lint errors on main block all commits — F821 in mcp_tools.py #598

Closed
opened 2026-03-20 16:25:19 +00:00 by Timmy · 1 comment
Owner

Bug: Pre-commit hook fails on main due to lint errors in mcp_tools.py

Problem

The pre-commit hook runs tox -e format which includes ruff check across all of src/. There are 3 F821 (undefined name) errors in src/timmy/mcp_tools.py that were introduced by the #563 refactor merge:

F821 Undefined name `ImageDraw` --> src/timmy/mcp_tools.py:317:23

These errors block ALL commits on ANY branch because the hook checks the entire src/ directory, not just staged files.

Impact

  • Critical: No new commits can land until this is fixed
  • All active development is blocked

Fix

Add the missing ImageDraw import to src/timmy/mcp_tools.py, or add the appropriate from PIL import ImageDraw where needed.

Files

  • src/timmy/mcp_tools.py
## Bug: Pre-commit hook fails on main due to lint errors in mcp_tools.py ### Problem The pre-commit hook runs `tox -e format` which includes `ruff check` across all of `src/`. There are 3 F821 (undefined name) errors in `src/timmy/mcp_tools.py` that were introduced by the #563 refactor merge: ``` F821 Undefined name `ImageDraw` --> src/timmy/mcp_tools.py:317:23 ``` These errors block ALL commits on ANY branch because the hook checks the entire `src/` directory, not just staged files. ### Impact - **Critical**: No new commits can land until this is fixed - All active development is blocked ### Fix Add the missing `ImageDraw` import to `src/timmy/mcp_tools.py`, or add the appropriate `from PIL import ImageDraw` where needed. ### Files - `src/timmy/mcp_tools.py`
Timmy self-assigned this 2026-03-20 16:25:19 +00:00
Author
Owner

Fixed by PR #597 — Kimi added TYPE_CHECKING import for ImageDraw. Lint passes clean on main now.

Fixed by PR #597 — Kimi added TYPE_CHECKING import for ImageDraw. Lint passes clean on main now.
Timmy closed this issue 2026-03-20 16:28:58 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#598