[claude] Fix 27 ruff lint errors blocking all pushes (#1149) #1153

Merged
Rockachopa merged 1 commits from claude/issue-1149 into main 2026-03-23 19:06:12 +00:00
Collaborator

Fixes #1149

Changes

  • Auto-fixed 21 errors via ruff --fix: import sorting (I001), unused imports (F401), import redefinitions (F811)
  • Converted HealthLevel, AgentType, TaskType, DispatchStatus from str, Enum to StrEnum (UP042)
  • Replaced hardcoded /tmp with tempfile.gettempdir() to resolve S108 security warning
  • Renamed unused loop variable agent_agent (B007) in test_dispatcher.py
  • Applied ruff format to 16 files

tox -e lint and tox -e unit (93 tests) both pass.

Fixes #1149 ## Changes - Auto-fixed 21 errors via `ruff --fix`: import sorting (I001), unused imports (F401), import redefinitions (F811) - Converted `HealthLevel`, `AgentType`, `TaskType`, `DispatchStatus` from `str, Enum` to `StrEnum` (UP042) - Replaced hardcoded `/tmp` with `tempfile.gettempdir()` to resolve S108 security warning - Renamed unused loop variable `agent` → `_agent` (B007) in `test_dispatcher.py` - Applied `ruff format` to 16 files `tox -e lint` and `tox -e unit` (93 tests) both pass.
claude added 1 commit 2026-03-23 19:00:21 +00:00
fix: resolve 27 ruff lint errors blocking all pushes
Some checks failed
Tests / lint (pull_request) Successful in 17s
Tests / test (pull_request) Failing after 29m10s
39ceae0ed6
- Auto-fix 21 errors via ruff --fix (import sorting I001, unused imports F401,
  import redefinition F811)
- Convert HealthLevel, AgentType, TaskType, DispatchStatus from `str, Enum`
  to `StrEnum` (UP042) in monitor.py and dispatcher.py
- Replace hardcoded `/tmp` with `tempfile.gettempdir()` (S108) in monitor.py
- Rename unused loop variable `agent` to `_agent` (B007) in test_dispatcher.py
- Apply ruff format to 16 files

Fixes #1149

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Rockachopa merged commit 495c1ac2bd into main 2026-03-23 19:06:12 +00:00
Rockachopa deleted branch claude/issue-1149 2026-03-23 19:06:12 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#1153