Skip to content

Update Taiwan holidays in 2025-2026#3156

Merged
arkid15r merged 7 commits intovacanza:devfrom
orcahmlee:update-2025
Dec 23, 2025
Merged

Update Taiwan holidays in 2025-2026#3156
arkid15r merged 7 commits intovacanza:devfrom
orcahmlee:update-2025

Conversation

@orcahmlee
Copy link
Copy Markdown
Contributor

@orcahmlee orcahmlee commented Dec 20, 2025

Proposed change

Since the Taiwan government issued the revised calendar on 2025-06-17, we have two fewer days off, specifically 2025-09-29 and 2025-10-24, related to #3155 .

REF:

After adding the missing day off, the output would be:

from datetime import date
import holidays

holidays.TW().get(date(2025, 9, 29))
# "Confucius' Birthday (observed)"
holidays.TW().get(date(2025, 10, 24))
# 'Taiwan Restoration and Guningtou Victory Memorial Day (observed)'

Resolves #3155 .

Type of change

  • New country/market holidays support (thank you!)
  • Supported country/market holidays update (calendar discrepancy fix, localization)
  • Existing code/documentation/test/process quality improvement (best practice, cleanup, refactoring, optimization)
  • Dependency update (version deprecation/pin/upgrade)
  • Bugfix (non-breaking change which fixes an issue)
  • Breaking change (a code change causing existing functionality to break)
  • New feature (new holidays functionality in general)

Checklist

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Dec 20, 2025

Walkthrough

Updates Taiwan holiday rules and tests: several holidays (Labor Day, Confucius' Birthday, Taiwan Restoration & Guningtou Memorial Day, Constitution Day) are now collected as observed dates for year thresholds (2025/2026); static-source URLs for 2025/2026 updated; tests adjusted for new substituted-observed dates; Andrew Li added to CONTRIBUTORS.

Changes

Cohort / File(s) Summary
Holiday logic & static data
holidays/countries/taiwan.py
For year thresholds (>=2025/>=2026) several holidays (Labor Day, Confucius' Birthday, Taiwan Restoration & Guningtou Memorial Day, Constitution Day) are now appended to an observed-dates collection (dts_observed) instead of being added directly. TaiwanStaticHolidays.special_public_holidays_observed doc/data updated: 2025 source URL replaced (archived) and a 2026 URL entry added.
Tests
tests/countries/test_taiwan.py
Adds expected substituted/observed holiday assertions for 2025: 2025-09-29 (孔子誕辰紀念日(補假)) and 2025-10-24 (臺灣光復暨金門古寧頭大捷紀念日(補假)). Also adds multiple other substituted-date checks across years for Labor Day, Confucius' Birthday, Taiwan Retrocession Day, and Constitution Day.
Meta / Contributors
CONTRIBUTORS
Inserts contributor name Andrew Li.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

  • Review year-gated logic (>=2025 / >=2026) and ensure observed-date collection is populated and later applied correctly.
  • Verify updated 2025 URL and added 2026 URL in TaiwanStaticHolidays.special_public_holidays_observed.
  • Run tests, focusing on the new substituted/observed assertions and the broader set of added substituted-date checks.

Possibly related PRs

Suggested labels

snapshot

Suggested reviewers

  • arkid15r
  • PPsyrius

Pre-merge checks and finishing touches

❌ 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%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (4 passed)
Check name Status Explanation
Description check ✅ Passed The description is well-related to the changeset, explaining the government-issued revised calendar, referencing issue #3155, and providing concrete examples of the expected output.
Linked Issues check ✅ Passed The PR changes meet the linked issue #3155 requirements by adding observed holidays for 2025-09-29 and 2025-10-24, with code updates to handle the revised Taiwan government calendar.
Out of Scope Changes check ✅ Passed All changes align with issue #3155: Taiwan holiday data for 2025. The addition of Andrew Li to CONTRIBUTORS is a minor attribution change commonly included with code contributions.
Title check ✅ Passed The title accurately captures the main change: updating Taiwan holiday observances for 2025-2026 to reflect government calendar revisions.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

coderabbitai[bot]
coderabbitai bot previously approved these changes Dec 20, 2025
@orcahmlee
Copy link
Copy Markdown
Contributor Author

Hi @arkid15r @KJhellico @PPsyrius ,
Would you like to review it?

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (8de88f2) to head (717e15c).
⚠️ Report is 2 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff            @@
##               dev     #3156   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          306       306           
  Lines        18249     18249           
  Branches      2327      2327           
=========================================
  Hits         18249     18249           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

coderabbitai[bot]
coderabbitai bot previously approved these changes Dec 20, 2025
coderabbitai[bot]
coderabbitai bot previously approved these changes Dec 20, 2025
@KJhellico
Copy link
Copy Markdown
Collaborator

I think it would be more correct to simply add these holidays to dts_observed, since the dates correspond to the standard rule. (This also applies to Labor Day and Constitution Day, although we will be able to check this only in 2027)

@orcahmlee
Copy link
Copy Markdown
Contributor Author

I think it would be more correct to simply add these holidays to dts_observed, since the dates correspond to the standard rule. (This also applies to Labor Day and Constitution Day, although we will be able to check this only in 2027)

Thanks for your review. I've rebased a new version.

coderabbitai[bot]
coderabbitai bot previously approved these changes Dec 21, 2025
Copy link
Copy Markdown
Collaborator

@KJhellico KJhellico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And I propose to add the same to Labor Day and Constitution Day.

@KJhellico
Copy link
Copy Markdown
Collaborator

I've rebased a new version.

Please refrain from rebasing on the published PR branch in the future.

@orcahmlee
Copy link
Copy Markdown
Contributor Author

And I propose to add the same to Labor Day and Constitution Day.

Thanks for your review. Already added these holidays.

@orcahmlee orcahmlee requested a review from KJhellico December 22, 2025 07:40
coderabbitai[bot]
coderabbitai bot previously approved these changes Dec 22, 2025
PPsyrius
PPsyrius previously approved these changes Dec 22, 2025
Copy link
Copy Markdown
Collaborator

@PPsyrius PPsyrius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🇹🇼

@KJhellico KJhellico dismissed stale reviews from PPsyrius and coderabbitai[bot] via 717e15c December 22, 2025 12:32
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Collaborator

@KJhellico KJhellico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@PPsyrius PPsyrius changed the title Update Taiwan holidays in 2025 Update Taiwan holidays in 2025-2026 Dec 23, 2025
Copy link
Copy Markdown
Collaborator

@arkid15r arkid15r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @orcahmlee
Merging this 👍

@arkid15r arkid15r added this pull request to the merge queue Dec 23, 2025
Merged via the queue into vacanza:dev with commit 7eebcee Dec 23, 2025
33 checks passed
@arkid15r arkid15r mentioned this pull request Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Taiwan holidays in 2025

4 participants