Skip to content

Fix quarter start boundary dates - #2327

Draft
bm1016bm-svg wants to merge 1 commit into
beancount:mainfrom
bm1016bm-svg:agent/fix-quarter-boundaries
Draft

Fix quarter start boundary dates#2327
bm1016bm-svg wants to merge 1 commit into
beancount:mainfrom
bm1016bm-svg:agent/fix-quarter-boundaries

Conversation

@bm1016bm-svg

Copy link
Copy Markdown

Summary

  • treat April, July, and October as the starts of their current quarters
  • cover exact quarter boundaries in both interval and day-count tests

Fixes #2318.

Testing

  • uv run --no-dev --group test pytest tests/test_util_date.py — 151 passed
  • ruff check src/fava/util/date.py tests/test_util_date.py — passed

AI assistance

Implementation and tests were developed with OpenAI Codex assistance, then reviewed and validated locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

_IntervalQuarter.get_prev off by one: first month of each quarter maps to the previous quarter

1 participant