-
-
Notifications
You must be signed in to change notification settings - Fork 544
Docstring cleanup for Indochinese countries #2505
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
Summary by CodeRabbit
WalkthroughThis update standardizes comment punctuation and updates metadata across several files. Comments in Cambodian and Thai holiday modules, as well as related translation files, now consistently end with periods. PO file metadata, including revision dates and generator versions, has been updated. Additionally, the order of certain class attributes in the Thailand holiday module was adjusted. Docstrings in the Thai holidays group were clarified to reflect accurate alternative festival names. No functional logic or exported entity signatures were changed. Changes
Possibly related PRs
Suggested labels
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🔇 Additional comments (1)
✨ Finishing Touches
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:
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 #2505 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 215 215
Lines 13588 13588
Branches 1931 1931
=========================================
Hits 13588 13588 ☔ 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: 1
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (6)
holidays/countries/cambodia.py
(14 hunks)holidays/countries/thailand.py
(1 hunks)holidays/groups/thai.py
(2 hunks)holidays/locale/en_US/LC_MESSAGES/KH.po
(2 hunks)holidays/locale/km/LC_MESSAGES/KH.po
(2 hunks)holidays/locale/th/LC_MESSAGES/KH.po
(2 hunks)
⏰ Context from checks skipped due to timeout of 300000ms (1)
- GitHub Check: Test build on windows-latest
🔇 Additional comments (9)
holidays/countries/cambodia.py (1)
74-74
: Standardize comment punctuation. Trailing periods have been added to descriptive comments throughout_populate_public_holidays
and theCambodiaStaticHolidays
class to improve consistency. These are non-functional documentation updates and align with project style guidelines.Also applies to: 83-83, 109-109, 119-119, 135-135, 143-143, 152-152, 160-160, 183-183, 195-195, 207-207, 215-215, 228-228, 237-237, 245-245, 253-253, 264-264, 291-291, 293-293, 295-295, 297-297
holidays/locale/th/LC_MESSAGES/KH.po (2)
19-19
: Update PO file metadata. ThePO-Revision-Date
andX-Generator
headers have been bumped to reflect the latest translation revision and Poedit version. These are correct, non-functional header updates.Also applies to: 27-27
29-29
: Standardize translator comment punctuation. Added trailing periods to all translator comments (lines beginning with#.
) beforemsgid
entries to maintain a uniform style. No changes to actual translations.Also applies to: 33-33, 45-45, 49-49, 53-53, 57-57, 63-63, 67-67, 71-71, 75-75, 79-79, 87-87, 92-92, 100-100, 104-104, 108-108, 112-112, 116-116, 120-120
holidays/locale/en_US/LC_MESSAGES/KH.po (2)
19-19
: Update PO file metadata. BumpedPO-Revision-Date
andX-Generator
to the current values. Non-functional update.Also applies to: 27-27
29-29
: Standardize translator comment punctuation. Added trailing periods to descriptive comments preceding eachmsgid
, ensuring consistency across the file.Also applies to: 33-33, 45-45, 49-49, 53-53, 57-57, 61-61, 65-65, 69-69, 73-73, 77-77, 88-88, 94-94, 98-98, 102-102, 106-106, 110-110, 114-114, 118-118, 122-122
holidays/locale/km/LC_MESSAGES/KH.po (2)
19-19
: Update PO file metadata. ThePO-Revision-Date
andX-Generator
have been updated to reflect the latest translation state. Non-functional header change.Also applies to: 27-27
29-29
: Standardize translator comment punctuation. Trailing periods were added to all translator comment lines (#.
) for consistent formatting. No translation content was modified.Also applies to: 33-33, 45-45, 49-49, 53-53, 57-57, 61-61, 65-65, 69-69, 73-73, 77-77, 83-83, 88-88, 94-94, 98-98, 102-102, 106-106, 110-110, 114-114
holidays/groups/thai.py (1)
121-123
: Clarify alternative names for Makha Bucha. The docstring now correctly lists "Makha Bousa" and "Meak Bochea Day" alongside "Māgha Pūjā," enhancing naming accuracy.holidays/countries/thailand.py (1)
188-190
: Attribute grouping improved
Movingsupported_categories
andsupported_languages
directly afterstart_year
neatly groups all static class metadata together. The tuple contents remain unchanged, and this reordering has no impact on runtime behavior while enhancing readability and consistency with other country modules.
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 (1)
holidays/groups/thai.py
(2 hunks)
⏰ Context from checks skipped due to timeout of 300000ms (1)
- GitHub Check: Test build on windows-latest
🔇 Additional comments (1)
holidays/groups/thai.py (1)
121-123
: Docstring for Makha Bucha is clear and consistent.The updated alternative names (“Makha Bousa and Meak Bochea Day”) are accurate and the sentence now ends with a period, matching the style of other docstrings. Nicely cleaned up!
|
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 👍
Proposed change
Doesn't otherwise affects holiday list in these countries.
Type of change
holidays
functionality in general)Checklist
make check
, all checks and tests are green