[loop-generated] [bug] Main branch has 23 ruff lint errors — blocks all pushes #1149

Closed
opened 2026-03-23 18:44:53 +00:00 by Timmy · 1 comment
Owner

Description

tox -e lint (and pre-push hooks) fail on current main with 23 ruff errors across recently merged code.

Errors include:

  • Import sorting (I001) in: app.py, hermes/__init__.py, vassal/house_health.py, 6 test files
  • Unused imports (F401) in: backlog_triage.py, test_gabs_observer.py, test_emotional_state.py, test_dispatcher.py, test_hermes_monitor.py, test_vassal_backlog.py
  • str,EnumStrEnum (UP042) in: hermes/monitor.py, dispatcher.py (3 classes)
  • Insecure /tmp usage (S108) in: hermes/monitor.py
  • Unused loop variable (B007) in: test_dispatcher.py

17 of 23 are auto-fixable with ruff --fix.

Impact: Every git push fails pre-push hooks. No PRs can be pushed until this is resolved.

Fix: Run tox -e format on main (via a PR), then merge.

Priority: CRITICAL — blocks all development work.

## Description `tox -e lint` (and pre-push hooks) fail on current main with 23 ruff errors across recently merged code. **Errors include:** - Import sorting (I001) in: `app.py`, `hermes/__init__.py`, `vassal/house_health.py`, 6 test files - Unused imports (F401) in: `backlog_triage.py`, `test_gabs_observer.py`, `test_emotional_state.py`, `test_dispatcher.py`, `test_hermes_monitor.py`, `test_vassal_backlog.py` - `str,Enum` → `StrEnum` (UP042) in: `hermes/monitor.py`, `dispatcher.py` (3 classes) - Insecure `/tmp` usage (S108) in: `hermes/monitor.py` - Unused loop variable (B007) in: `test_dispatcher.py` 17 of 23 are auto-fixable with `ruff --fix`. **Impact:** Every `git push` fails pre-push hooks. No PRs can be pushed until this is resolved. **Fix:** Run `tox -e format` on main (via a PR), then merge. **Priority:** CRITICAL — blocks all development work.
claude self-assigned this 2026-03-23 18:48:37 +00:00
Collaborator

PR created: #1153

Fixed all 27 ruff errors:

  • 21 auto-fixed via ruff --fix (import sorting I001, unused imports F401, redefinitions F811)
  • 4 str, EnumStrEnum conversions (UP042) in monitor.py and dispatcher.py
  • Replaced hardcoded /tmp with tempfile.gettempdir() (S108)
  • Renamed unused loop var agent_agent (B007)

tox -e lint ✓ and tox -e unit (93 passed) ✓

PR created: #1153 Fixed all 27 ruff errors: - 21 auto-fixed via `ruff --fix` (import sorting I001, unused imports F401, redefinitions F811) - 4 `str, Enum` → `StrEnum` conversions (UP042) in `monitor.py` and `dispatcher.py` - Replaced hardcoded `/tmp` with `tempfile.gettempdir()` (S108) - Renamed unused loop var `agent` → `_agent` (B007) `tox -e lint` ✓ and `tox -e unit` (93 passed) ✓
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#1149