Define TAX_FILE after DATA_DIR to avoid divergent fallbacks #32

Open
opened 2026-06-06 19:58:15 +00:00 by tonym · 0 comments

Severity: low
Category: tech-debt
Location: app.py:57 vs 172

Problem

TAX_FILE is built with its own inline DATA_DIR lookup before the canonical DATA_DIR is defined; a future fallback change silently diverges.

Suggested fix

Move TAX_FILE = os.path.join(DATA_DIR, 'taxes.json') below the DATA_DIR definition.

Filed by automated code review.

**Severity:** low **Category:** tech-debt **Location:** `app.py:57 vs 172` ### Problem TAX_FILE is built with its own inline DATA_DIR lookup before the canonical DATA_DIR is defined; a future fallback change silently diverges. ### Suggested fix Move `TAX_FILE = os.path.join(DATA_DIR, 'taxes.json')` below the DATA_DIR definition. _Filed by automated code review._
tonym added the
tech-debt
severity:low
labels 2026-06-06 19:58:15 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bonna61/Moon-Household-Budget#32
No description provided.