Update India holidays: add Arunachal Pradesh (AR) holidays
Proposed change
Add Arunachal Pradesh (AR) subdivision public holidays support.
- Adds
_populate_subdiv_ar_public_holidays()function - Arunachal Pradesh Statehood Day on February 20 (from year 1987)
- Dr. B. R. Ambedkar Jayanti on April 14
References:
- https://en.wikipedia.org/wiki/Arunachal_Pradesh
- https://en.wikipedia.org/wiki/Arunachal_Pradesh_Statehood_Day
Type of change
- [x] Supported country/market holidays update (calendar discrepancy fix, localization)
Checklist
- [x] I've read and followed the contributing guidelines.
- [x] I've run
make checklocally; all checks and tests passed.
[!NOTE]
Reviews paused
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
reviews.auto_review.auto_pause_after_reviewed_commitssetting.Use the following commands to manage reviews:
@coderabbitai resumeto resume automatic reviews.@coderabbitai reviewto trigger a single review.Use the checkboxes below for quick actions:
- [ ] โถ๏ธ Resume reviews
- [ ] ๐ Trigger review
Walkthrough
Adds an Arunachal Pradesh subdivision method to India that registers four state-specific holidays (Arunachal Pradesh Statehood Day Feb 20 from 1987, Bohag Bihu Apr 15, Dr. B. R. Ambedkar's Jayanti Apr 14, Indigenous Faith Day Dec 1) and updates tests and localized labels.
Changes
| Cohort / File(s) | Summary |
|---|---|
Arunachal Pradesh holidays holidays/countries/india.py |
Added _populate_subdiv_ar_public_holidays to add AR-specific holidays: Feb 20 (statehood, from 1987), Apr 14 (Ambedkar Jayanti), Apr 15 (Bohag Bihu), Dec 1 (Indigenous Faith Day). |
Tests updated tests/countries/test_india.py |
Added test_ar_statehood_day, extended 2018 subdivision holiday mapping to include "AR" dates, and updated localized expected labels to include the new AR holiday names/combined labels. |
Estimated code review effort
๐ฏ 2 (Simple) | โฑ๏ธ ~10 minutes
Possibly related PRs
- vacanza/holidays#2259: Overlapping India subdivision updates and tests touching
holidays/countries/india.pyandtests/countries/test_india.py. - vacanza/holidays#2953: Adds per-state/subdivision holiday population methods to the India class (same pattern as this change).
Suggested labels
l10n
Suggested reviewers
- KJhellico
- PPsyrius
- arkid15r
๐ฅ Pre-merge checks | โ 2 | โ 1
โ Failed checks (1 warning)
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Docstring Coverage | โ ๏ธ Warning | Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. | Write docstrings for the functions missing them to satisfy the coverage threshold. |
โ Passed checks (2 passed)
| Check name | Status | Explanation |
|---|---|---|
| Title check | โ Passed | The title directly and clearly describes the main change: adding Arunachal Pradesh holidays to India's holiday calendar. |
| Description check | โ Passed | The description is related to the changeset, covering the new function, specific holidays added, and references. It accurately describes what was implemented. |
โ๏ธ Tip: You can configure your own custom pre-merge checks in the settings.
โจ Finishing Touches
๐งช Generate unit tests (beta)
- [ ] Create PR with 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.
Comment @coderabbitai help to get the list of available commands and usage tips.
As I can see, Arunachal Pradesh has also other Gazetted holidays?
As I can see, Arunachal Pradesh has also other Gazetted holidays?
Yes, you're right! Arunachal Pradesh has additional state-specific Gazetted holidays. I am updating the PR to include:
- Bohag Bihu (April 15)
- Indigenous Faith Day (December 1)
Reference: https://www.northeastjob.in/2025/04/arunachal-pradesh-holiday-list.html
Hi @PPsyrius @KJhellico,
I have updated the PR with the following changes:
- Added more state-specific Gazetted holidays:
- Bohag Bihu (April 15)
- Indigenous Faith Day (December 1)
- Added references in the reference section of india.py
- Added unit tests in test_india.py
Please review when you get a chance. Thank you!
Hi @PPsyrius @KJhellico,
I have addressed all the CodeRabbit suggestions:
- Added AR entry in subdiv_holidays_mapping in test_india.py
- Added dedicated test for Statehood Day 1987 boundary (test_ar_statehood_day)
Please review when you get a chance. Thank you!
@Shweta-Singh30 It seems there might be a pre-commit issue. You can try running pre-commit locally to see what needs fixing.
@Shweta-Singh30,
General recommendations:
- It's highly recommended to run local checks (
make pre-commit,make test) or enable the corresponding pre-commit hooks. The simplest way to fully set up your development environment is:
make setup
- If code changes involve adding or modifying translatable strings (holiday names), you need to run
make l10nto update .po files.
This PR notes:
- Bohag Bihu (Assamese New Year) is Indian Solar calendar holiday, and in the Gregorian calendar, its date is not fixed but varies by one day.
- After updating .po files, you will need to add translations of new names in all supported languages.
@Shweta-Singh30,
General recommendations:
- It's highly recommended to run local checks (
make pre-commit,make test) or enable the corresponding pre-commit hooks. The simplest way to fully set up your development environment is:make setup
- If code changes involve adding or modifying translatable strings (holiday names), you need to run
make l10nto update .po files.This PR notes:
- Bohag Bihu (Assamese New Year) is Indian Solar calendar holiday, and in the Gregorian calendar, its date is not fixed but varies by one day.
- After updating .po files, you will need to add translations of new names in all supported languages.
Thank you for the detailed feedback!
Pre-commit checks are now passing locally.
Regarding Bohag Bihu - I understand it follows the Indian Solar calendar. Could you guide me on which method to use for this holiday? I want to make sure I implement it correctly.
Also, I will work on updating the .po translation files.
Could you guide me on which method to use for this holiday?
I recommend using the approach currently employed for other similar holidays (Makar Sankranti, Pongal, Vaisakhi) in the HinduCalendarHolidays and _HinduLunisolar classes. In the future, I hope we will be able to implement more comprehensive support for Indian Solar and Lunisolar calendars.
Could you guide me on which method to use for this holiday?
I recommend using the approach currently employed for other similar holidays (Makar Sankranti, Pongal, Vaisakhi) in the HinduCalendarHolidays and _HinduLunisolar classes. In the future, I hope we will be able to implement more comprehensive support for Indian Solar and Lunisolar calendars.
Thank you for the guidance on Bohag Bihu!
I've updated the implementation to use _add_bohag_bihu() in HinduCalendarHolidays, following the same approach as Makar Sankranti, Pongal, and Vaisakhi โ using vaisakhi_date() from _HinduLunisolar for dynamic date calculation.
I've also updated all 6 supported .po translation files (en_IN, en_US, gu, hi, ta, te) with translations for the new holiday names.
Please let me know if any further changes are needed!
You need to revert unneeded .gitignore changes in your branch.
Hi @KJhellico @PPsyrius,
All review comments have been addressed:
- Added blank lines after Bohag Bihu and Ambedkar Jayanti entries
- Added en_US translations for all new holiday strings
Please review when you get a chance. Thank you!
- It's highly recommended to run local checks (
make pre-commit,make test) or enable the corresponding pre-commit hooks.
โ
- It's highly recommended to run local checks (
make pre-commit,make test) or enable the corresponding pre-commit hooks.โ
Pre-commit checks are passing locally. All checks passed successfully.
You need to add translations in the recently added languages.
You need to add translations in the recently added languages.
Translations have been added for all supported languages (en_IN, en_US, hi, gu, ta, te) for the new holiday names:
- Arunachal Pradesh Statehood Day
- Bohag Bihu
- Indigenous Faith Day
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
@Shweta-Singh30, you missed Bengali and Kannada. And you need to update test_l10n_... for all languages.
I was trying to update and complete this PR earlier, but _add_bohag_bihu method, which claims that it fell exactly on the same day as Vaisakhi, isn't working out at the moment (our test suite assume it falls on APR, 15 in 2018 - while the generate one is supposedly on APR, 14 that year)
I rechecked online sources to be sure and even Hindustan Times and Indian Express claims didn't agree with each other, so I'm not sure which source to trust anymore - older Arunchal Pradesh's own govenment website record pre-2024 isn't accessible either.
I was trying to update and complete this PR earlier, but
_add_bohag_bihumethod, which claims that it fell exactly on the same day as Vaisakhi, isn't working out at the moment (our test suite assume it falls on APR, 15 in 2018 - while the generate one is supposedly on APR, 14 that year)I rechecked online sources to be sure and even Hindustan Times and Indian Express claims didn't agree with each other, so I'm not sure which source to trust anymore - older Arunchal Pradesh's own govenment website record pre-2024 isn't accessible either.
@PPsyrius sir , the main difference is just the length of the holiday. Assam gets a three-day public holiday starting on April 14th, while Arunachal Pradesh only gets a single day off strictly on the main New Year date itself, which was April 15th in 2018. Also, both of those articles you checked are almost certainly referring to Assam's multi-day holiday schedule rather than Arunachal Pradesh's specific single day.
Here are a few sources that might be helpful to confirm the date:
https://timesofindia.indiatimes.com/city/guwahati/bank-holidays-in-arunachal-pradesh-2018/articleshow/63484334.cms
https://www.calendarlabs.com/bank-holidays-in-arunachal-pradesh-2018/
https://cdnbbsr.s3waas.gov.in/s3ec058baca01b732cf56f7ce83df21651/uploads/2023/11/2023111872.pdf