-
-
Notifications
You must be signed in to change notification settings - Fork 544
Update Indonesia holidays: 2031-2050 Day of Silence (Nyepi) data, migrate to BalineseSakaCalendarHolidays
#2328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Summary by CodeRabbit
WalkthroughThis update modifies the Indonesian holiday management system by introducing support for the Balinese Saka calendar. It adds new entries for the "Day of Silence" holiday for years 2031 to 2050 and integrates a new base class for enhanced functionality. The changes also include updates to the test suite to ensure broader coverage for holiday recognition. Documentation has been improved to reflect these updates and provide additional cultural references. Changes
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (4)
🔇 Additional comments (13)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
@arkid15r I've noticed that Given that our existing |
I use |
I'll keep in mind for future PRs 🙏 |
BalineseSakaCalendarHolidays
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #2328 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 201 203 +2
Lines 12378 12402 +24
Branches 1777 1777
=========================================
+ Hits 12378 12402 +24 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
holidays/calendars/balinese_saka.py
(1 hunks)
⏰ Context from checks skipped due to timeout of 300000ms (1)
- GitHub Check: Test build on windows-latest
🔇 Additional comments (4)
holidays/calendars/balinese_saka.py (4)
1-11
: Header and initial comments look good.No issues observed here; the license header and explanatory comments are consistent.
13-14
: Imports are correct.The usage of
datetime.date
andtyping.Optional
for type annotations is appropriate.
94-99
: Method functionality is clear.The
_get_holiday
method effectively merges exact and fallback data. No immediate issues found; just ensure future developers understand the second returned value indicates estimated vs. exact.
100-101
: Clear method naming.
nyepi_date
wraps_get_holiday
neatly. No problems spotted.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I'll look into improving this, thanks for noticing! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for restructuring that! LGTM
Proposed change
_BalineseSakaLunar
calendar andBalineseSakaCalendarHolidays
holiday group to make it easier to extend support beyond 2050.Type of change
holidays
functionality in general)Checklist
make check
, all checks and tests are green