Update Brunei holidays: observed holidays, 2026 exact dates#3228
Update Brunei holidays: observed holidays, 2026 exact dates#3228arkid15r merged 1 commit intovacanza:devfrom
Conversation
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings. WalkthroughBrunei holiday handling refactored to use batch-processing of observed dates with a new Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #3228 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 307 307
Lines 18314 18309 -5
Branches 2339 2330 -9
=========================================
- Hits 18314 18309 -5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
holidays/countries/brunei.py (1)
223-240: EID_AL_ADHA and MAWLID are missing 2026 entries despite CONFIRMED_YEARS including 2026.EID_AL_ADHA_DATES and MAWLID_DATES lack explicit 2026 entries, but their CONFIRMED_YEARS ranges extend to 2026. This creates an inconsistency: the library will use algorithmic dates for 2026 and mark them as confirmed, conflicting with the explicit-dates-only pattern used for EID_AL_FITR, HIJRI_NEW_YEAR, ISRA_AND_MIRAJ, and RAMADAN_BEGINNING (which all have 2026 entries).
Either add the verified 2026 dates for both holidays, or reduce CONFIRMED_YEARS to (1998, 2025):
🛠️ Conservative fix (if 2026 dates unavailable)
- EID_AL_ADHA_DATES_CONFIRMED_YEARS = (1998, 2026) + EID_AL_ADHA_DATES_CONFIRMED_YEARS = (1998, 2025) ... - MAWLID_DATES_CONFIRMED_YEARS = (1998, 2026) + MAWLID_DATES_CONFIRMED_YEARS = (1998, 2025)



Proposed change
Update Brunei holidays:
Type of change
holidaysfunctionality in general)Checklist
make checklocally; all checks and tests passed.