-
-
Notifications
You must be signed in to change notification settings - Fork 558
Update Philippines holidays: adjust Bonifacio Day for 2023 #2370
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 pull request updates the Philippine holiday definitions by adding a new proclamation reference and modifying the Bonifacio Day date for 2023 in the holidays file. The corresponding test has been updated by refining the year ranges tested and adding an assertion for the revised holiday date. Both changes ensure that the holiday logic for Bonifacio Day is correctly reflected in the production code and its tests. Changes
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 300000ms (1)
🔇 Additional comments (3)
✨ 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
|
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: 1
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (2)
holidays/countries/philippines.py
(2 hunks)tests/countries/test_philippines.py
(1 hunks)
🧰 Additional context used
🪛 Ruff (0.8.2)
tests/countries/test_philippines.py
241-241: Line too long (103 > 99)
(E501)
🔇 Additional comments (3)
holidays/countries/philippines.py (2)
50-50
: Looks good - documentation reference added.The addition of the proclamation reference is clear and following the established pattern. This provides the legal basis for the holiday date change.
150-150
: Holiday date adjustment correctly implemented.Adding the special date for Bonifacio Day 2023 (November 27) to the dates_obs dictionary follows the pattern used for other exceptional holiday dates. The change aligns perfectly with the PR objective to adjust this holiday date as officially proclaimed.
tests/countries/test_philippines.py (1)
245-245
: Special case test for 2023 correctly added.The test properly includes verification for the special date of Bonifacio Day in 2023. This ensures the implementation will handle this exceptional case correctly.
Co-authored-by: Panpakorn Siripanich <19505219+PPsyrius@users.noreply.github.com> Signed-off-by: Peter Westling <w3stling@users.noreply.github.com>
Bonifacio Day in test |
|
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.
Good catch on this one, LGTM 🇵🇭
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #2370 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 204 204
Lines 12853 12853
Branches 1817 1817
=========================================
Hits 12853 12853 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@w3stling, thank you for this update! |
Proposed change
Adjust the Philippines holiday Bonifacio Day for 2023.
Bonifacio Day was moved from 2023-11-30 to 2023-11-27.
Source:
https://www.officialgazette.gov.ph/2022/11/09/proclamation-no-90-s-2022/
Type of change
holidays
functionality in general)Checklist
make check
, all checks and tests are green