-
-
Notifications
You must be signed in to change notification settings - Fork 558
Update Peru holidays: add 2023+ holidays #2730
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
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Added "Battle of Arica and National Flag Day" (June 7, from 2024 onward) and "Peruvian Air Force Day" (July 23, from 2023 onward) to the list of recognized public holidays in Peru.
* Updated English and Ukrainian translations for the new holidays; Spanish entries added as untranslated.
* **Tests**
* Added a new test verifying the presence and names of the two new holidays for 2025 in the Peru holiday test suite.
* **Chores**
* Added "Diego Rosaperez" to the CONTRIBUTORS list.
## Walkthrough
This update introduces two new Peruvian holidays effective from 2023 and 2024, adds their translations to localization files for English, Spanish, and Ukrainian, updates the Peru holiday tests to 2025, and inserts a new contributor in the CONTRIBUTORS list. No changes were made to public APIs.
## Changes
| Files/Paths | Change Summary |
|-----------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------|
| holidays/countries/peru.py | Added "Battle of Arica and National Flag Day" (from 2024) and "Peruvian Air Force Day" (from 2023) to holidays logic, plus new legal references. |
| holidays/locale/en_US/LC_MESSAGES/PE.po,<br>holidays/locale/uk/LC_MESSAGES/PE.po | Added English and Ukrainian translations for the two new holidays. |
| holidays/locale/es/LC_MESSAGES/PE.po | Added untranslated Spanish entries for the two new holidays. |
| tests/countries/test_peru.py | Added test for the two new holidays in 2025, checking dates and names. |
| CONTRIBUTORS | Added "Diego Rosaperez" alphabetically to the contributor list. |
## Estimated code review effort
2 (10–30 minutes)
## Suggested reviewers
- KJhellico
- PPsyrius 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (2)📓 Common learnings
tests/countries/test_peru.py (25)Learnt from: PPsyrius Learnt from: KJhellico Learnt from: PPsyrius Learnt from: PPsyrius Learnt from: KJhellico Learnt from: PPsyrius Learnt from: PPsyrius Learnt from: KJhellico Learnt from: KJhellico Learnt from: PPsyrius Learnt from: PPsyrius Learnt from: PPsyrius Learnt from: PPsyrius Learnt from: PPsyrius Learnt from: KJhellico Learnt from: PPsyrius Learnt from: PPsyrius Learnt from: PPsyrius Learnt from: KJhellico Learnt from: PPsyrius Learnt from: PPsyrius Learnt from: KJhellico Learnt from: KJhellico Learnt from: PPsyrius Learnt from: KJhellico ⏰ Context from checks skipped due to timeout of 300000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (2)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #2730 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 270 270
Lines 16111 16115 +4
Branches 2175 2177 +2
=========================================
+ Hits 16111 16115 +4 ☔ 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.
Nice work 👍
…om test for newly added holidays
…om test for newly added holidays
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.
Last suggestions prior to the merge 👍
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 🇵🇪
|
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! 👍
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 the contribution @kplrm !
Proposed change
I added two National Holidays for Peru which were introduced in 2023 and 2025 that are listed in the source, but were not yet implemented.
https://es.wikipedia.org/wiki/Anexo:D%C3%ADas_festivos_en_Per%C3%BA
My repo: https://github.com/kplrm/python-holidays
Type of change
holidays
functionality in general)Checklist
make check
, all checks and tests are green