-
-
Notifications
You must be signed in to change notification settings - Fork 558
Refactor Chile holidays: reduce l10n string duplication #2934
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
WalkthroughRefactors Chile holidays logic to centralize the “Fiestas Patrias” translation into a variable, adjusts observed holiday handling for Sep 17 and Sep 20 within the 2007+ branch (including 2008 FRI_ONLY rule), adds a comment for New Year’s observed post-2017, and reorganizes related conditionals. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (14)📓 Common learnings
📚 Learning: 2025-08-12T03:21:09.116Z
Applied to files:
📚 Learning: 2025-05-10T04:32:15.760Z
Applied to files:
📚 Learning: 2025-04-03T12:36:41.201Z
Applied to files:
📚 Learning: 2025-05-10T04:02:13.815Z
Applied to files:
📚 Learning: 2025-08-25T09:57:22.291Z
Applied to files:
📚 Learning: 2025-04-23T09:22:41.753Z
Applied to files:
📚 Learning: 2025-06-19T05:54:49.792Z
Applied to files:
📚 Learning: 2025-08-21T04:56:03.780Z
Applied to files:
📚 Learning: 2025-09-14T04:36:25.096Z
Applied to files:
📚 Learning: 2025-06-21T16:30:12.749Z
Applied to files:
📚 Learning: 2025-09-14T04:36:25.096Z
Applied to files:
📚 Learning: 2025-07-02T18:17:53.342Z
Applied to files:
📚 Learning: 2025-07-09T20:27:37.760Z
Applied to files:
🧬 Code graph analysis (1)holidays/countries/chile.py (1)
⏰ 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). (2)
🔇 Additional comments (4)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Ruff (0.12.2)holidays/countries/chile.py�[1;31mruff failed�[0m 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 #2934 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 296 296
Lines 17593 17594 +1
Branches 2270 2270
=========================================
+ Hits 17593 17594 +1 ☔ 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.
LGTM!
Proposed change
Reduce l10n string duplication in Chile's holiday code.
This is part of the non-test case changes decoupling from #2881
Type of change
holidays
functionality in general)Checklist
make check
locally; all checks and tests passed.