-
-
Notifications
You must be signed in to change notification settings - Fork 579
IN: Add Dadra and Nagar Haveli and Daman and Diu (DH) holidays #3150
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
base: dev
Are you sure you want to change the base?
Conversation
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings. WalkthroughAdds DH (Dadra and Nagar Haveli and Daman and Diu) subdivision holidays to India: new DH-specific population method, a Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20–30 minutes
Areas to review closely:
Possibly related PRs
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 (6)
🧰 Additional context used🧠 Learnings (55)📓 Common learnings📚 Learning: 2025-03-08T11:28:48.652ZApplied to files:
📚 Learning: 2025-05-06T15:25:44.333ZApplied to files:
📚 Learning: 2025-06-28T10:39:19.185ZApplied to files:
📚 Learning: 2025-06-26T15:34:35.476ZApplied to files:
📚 Learning: 2025-03-05T17:51:00.633ZApplied to files:
📚 Learning: 2025-09-26T13:58:49.363ZApplied to files:
📚 Learning: 2025-03-30T18:25:07.087ZApplied to files:
📚 Learning: 2025-03-30T13:33:31.598ZApplied to files:
📚 Learning: 2025-09-26T13:44:12.652ZApplied to files:
📚 Learning: 2025-06-11T18:32:25.595ZApplied to files:
📚 Learning: 2025-06-25T10:09:29.029ZApplied to files:
📚 Learning: 2025-04-17T17:08:48.082ZApplied to files:
📚 Learning: 2025-06-10T12:17:58.880ZApplied to files:
📚 Learning: 2025-12-17T14:46:04.977ZApplied to files:
📚 Learning: 2025-06-14T20:12:37.212ZApplied to files:
📚 Learning: 2025-06-19T02:34:18.382ZApplied to files:
📚 Learning: 2025-10-28T17:26:45.090ZApplied to files:
📚 Learning: 2025-06-18T10:07:58.780ZApplied to files:
📚 Learning: 2025-06-18T10:58:28.058ZApplied to files:
📚 Learning: 2025-06-18T10:18:59.447ZApplied to files:
📚 Learning: 2025-06-18T10:26:50.180ZApplied to files:
📚 Learning: 2025-03-19T16:54:58.657ZApplied to files:
📚 Learning: 2025-06-19T02:34:14.456ZApplied to files:
📚 Learning: 2025-09-03T17:53:29.103ZApplied to files:
📚 Learning: 2025-03-30T20:18:46.006ZApplied to files:
📚 Learning: 2025-12-15T22:50:33.654ZApplied to files:
📚 Learning: 2025-09-28T05:42:12.777ZApplied to files:
📚 Learning: 2025-11-08T05:09:56.159ZApplied to files:
📚 Learning: 2025-09-14T17:17:14.387ZApplied to files:
📚 Learning: 2025-05-06T21:07:11.577ZApplied to files:
📚 Learning: 2025-07-02T10:22:33.053ZApplied to files:
📚 Learning: 2025-08-08T14:37:03.045ZApplied to files:
📚 Learning: 2025-09-18T03:19:23.722ZApplied to files:
📚 Learning: 2025-04-02T18:38:35.164ZApplied to files:
📚 Learning: 2025-08-25T22:19:01.342ZApplied to files:
📚 Learning: 2025-11-27T13:47:31.850ZApplied to files:
📚 Learning: 2025-07-24T15:21:31.632ZApplied to files:
📚 Learning: 2025-08-11T10:14:28.517ZApplied to files:
📚 Learning: 2025-09-03T17:10:35.672ZApplied to files:
📚 Learning: 2025-07-02T18:21:59.302ZApplied to files:
📚 Learning: 2025-12-15T22:50:33.654ZApplied to files:
📚 Learning: 2025-05-01T19:19:42.346ZApplied to files:
📚 Learning: 2025-05-01T19:19:42.346ZApplied to files:
📚 Learning: 2025-07-26T13:30:58.728ZApplied to files:
📚 Learning: 2025-09-16T04:11:33.513ZApplied to files:
📚 Learning: 2025-06-06T14:40:31.932ZApplied to files:
📚 Learning: 2025-08-30T22:55:34.525ZApplied to files:
📚 Learning: 2025-09-03T18:17:24.626ZApplied to files:
📚 Learning: 2025-06-29T10:36:06.138ZApplied to files:
📚 Learning: 2025-03-19T16:53:00.375ZApplied to files:
📚 Learning: 2025-09-18T07:01:12.236ZApplied to files:
📚 Learning: 2025-09-17T15:16:16.192ZApplied to files:
📚 Learning: 2025-05-10T04:32:15.760ZApplied to files:
📚 Learning: 2025-06-10T05:08:07.939ZApplied to files:
🪛 Ruff (0.14.8)holidays/countries/india.py326-326: Missing return type annotation for private function Add return type annotation: (ANN202) 🔇 Additional comments (12)
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 |
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.
Pull request overview
This PR adds holiday support for the merged Union Territory of Dadra and Nagar Haveli and Daman and Diu (ISO code DH) in India, including two liberation day holidays and comprehensive localization support across Hindi, Gujarati, and English.
- Added
DHsubdivision with three holidays: Dr. B. R. Ambedkar's Jayanti (Apr 14), Dadra and Nagar Haveli Liberation Day (Aug 2), and Daman and Diu Liberation Day (Dec 19) - Added
DDas a deprecated alias for backward compatibility - Updated Hindi and Gujarati translations with localized holiday names
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| holidays/countries/india.py | Added _populate_subdiv_dh_public_holidays method with three public holidays and added DD deprecated alias mapping |
| tests/countries/test_india.py | Added DH subdivision test data and updated all localization tests to include the new holidays |
| holidays/locale/hi/LC_MESSAGES/IN.po | Added Hindi translations for the two new liberation day holidays |
| holidays/locale/gu/LC_MESSAGES/IN.po | Added Gujarati translations for the two new liberation day holidays |
| holidays/locale/en_US/LC_MESSAGES/IN.po | Added English (US) entries for the two new liberation day holidays |
| holidays/locale/en_IN/LC_MESSAGES/IN.po | Added English (IN) entries for the two new liberation day holidays |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
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.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| * <https://web.archive.org/web/20250413193633/https://www.calendarlabs.com/holidays/india/2021> | ||
| * <https://web.archive.org/web/20231118175007/http://slusi.dacnet.nic.in/watershedatlas/list_of_state_abbreviation.htm> | ||
| * <https://web.archive.org/web/20231008063930/https://vahan.parivahan.gov.in/vahan4dashboard/> | ||
| * Dadra and Nagar Haveli and Daman and Diu : |
Copilot
AI
Dec 18, 2025
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.
There is an extra space before the colon. It should be "Daman and Diu:" instead of "Daman and Diu :".
| * Dadra and Nagar Haveli and Daman and Diu : | |
| * Dadra and Nagar Haveli and Daman and Diu: |
Oh my bad, you're absolutely right! I got confused and thought they were official. Should I update this PR to remove those two and just keep Ambedkar Jayanti (Apr 14) along with the structural fixes (DH class & aliases)? |
Yes, if there are no more specific holidays there. |



Proposed change
This PR adds support for the merged Union Territory of Dadra and Nagar Haveli and Daman and Diu (ISO code
DH).Changes included:
_populate_subdiv_dh_public_holidaysto theIndiaclass.DD(Daman and Diu) as a deprecated alias pointing toDH.hi(Hindi) andgu(Gujarati) translation files (.po) and regenerated.mofiles to support the new localized holiday names.Note:
make checkflagged issues in unrelated files (sweden.py,south_korea.py), but all India-specific tests passed successfully.Type of change
holidaysfunctionality in general)Checklist
make checklocally; all checks and tests passed.