-
-
Notifications
You must be signed in to change notification settings - Fork 561
Inline single-use variables, update .py files formatting #3014
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 refactors multiple country holiday files to eliminate unnecessary intermediate variable assignments. The changes directly pass computed translations to holiday-adding methods, simplifying call patterns while preserving identical logic and outcomes across Finland, Macau, New Zealand, Suriname, and Thailand. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Homogeneous refactoring pattern applied consistently across files with no logic changes—straightforward verification that translations and conditionals map correctly to the new direct call structure. Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (5)
🧰 Additional context used🧠 Learnings (6)📓 Common learnings📚 Learning: 2025-03-05T02:35:03.298ZApplied to files:
📚 Learning: 2025-03-04T11:41:56.389ZApplied to files:
📚 Learning: 2025-08-21T04:56:03.780ZApplied to files:
📚 Learning: 2025-08-26T20:10:05.288ZApplied to files:
📚 Learning: 2025-08-28T02:34:11.657ZApplied to files:
🧬 Code graph analysis (2)holidays/countries/thailand.py (2)
holidays/countries/macau.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). (1)
🔇 Additional comments (7)
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 #3014 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 306 306
Lines 18072 18063 -9
Branches 2333 2333
=========================================
- Hits 18072 18063 -9 ☔ 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.
Small wins that make ultimate difference 👍
LGTM
Proposed change
Inline single-use variables, update .py files formatting.
Type of change
holidaysfunctionality in general)Checklist
make checklocally; all checks and tests passed.