Skip to content

Update South Korea holidays: add Constitution Day back for 2026 onwards#3284

Merged
arkid15r merged 2 commits intovacanza:devfrom
kawai10:add-kr-constitution-day
Feb 20, 2026
Merged

Update South Korea holidays: add Constitution Day back for 2026 onwards#3284
arkid15r merged 2 commits intovacanza:devfrom
kawai10:add-kr-constitution-day

Conversation

@kawai10
Copy link
Copy Markdown
Contributor

@kawai10 kawai10 commented Feb 20, 2026

Proposed change

Restore Constitution Day (제헌절, July 17) as a public holiday in South Korea from 2026 onward.

Constitution Day was removed from the public holiday list in 2008 but has been reinstated per the Act on Public Holidays (공휴일에 관한 법률).

Reference: https://web.archive.org/web/20260220070517/https://www.law.go.kr/LSW/lsInfoP.do?efYd=20220101&lsiSeq=233829

Type of change

  • Supported country/market holidays update (calendar discrepancy fix, localization)

Checklist

Copilot AI review requested due to automatic review settings February 20, 2026 07:23
@github-actions github-actions bot added the test label Feb 20, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Feb 20, 2026

Walkthrough

Constitution Day holiday support for South Korea is reactivated for 2026 onwards, after being disabled from 2008 to 2025. A contributor is added and corresponding tests are updated to validate the new holiday range.

Changes

Cohort / File(s) Summary
Contributor Update
CONTRIBUTORS
Added Seong hun Cho to the contributors list.
South Korea Holiday Logic
holidays/countries/south_korea.py, tests/countries/test_south_korea.py
Constitution Day holiday now enabled for years >= 2026 in addition to the existing <= 2007 range. Documentation reference added. Tests updated to assert non-holiday status from 2008–2025 and reappearance from 2026 onwards.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Suggested labels

l10n, test

Suggested reviewers

  • PPsyrius
  • KJhellico
🚥 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
Description check ✅ Passed The description is directly related to the changeset, providing context about the holiday reinstatement, legal basis, and confirming all checks passed locally.
Title check ✅ Passed The title accurately summarizes the main change: restoring Constitution Day as a public holiday in South Korea from 2026 onwards, which directly aligns with the PR objectives and file modifications.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


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.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Restores South Korea’s Constitution Day (제헌절, July 17) as a public holiday starting in 2026, aligning the KR holiday calendar with the referenced Act on Public Holidays update.

Changes:

  • Update South Korea holiday generation logic to include Constitution Day again for years ≥ 2026.
  • Adjust South Korea tests to validate the 2008–2025 gap and the 2026+ reinstatement.
  • Add the contributor name and an additional legal reference link.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
holidays/countries/south_korea.py Reintroduces Constitution Day for years >= 2026 and adds a supporting legal reference.
tests/countries/test_south_korea.py Updates assertions to expect no Constitution Day from 2008–2025 and to expect it again from 2026 onward.
CONTRIBUTORS Adds the new contributor entry.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@holidays/countries/south_korea.py`:
- Around line 193-195: The code adds Constitution Day via
self._add_holiday_jul_17 for years >= 2026 but never calls append_observed so
substitute holidays aren't generated; modify the branch that handles self._year
>= 2026 to call self.append_observed on the July 17 holiday (use the same
holiday object or key returned/recorded by self._add_holiday_jul_17) so weekend
occurrences produce observed days, and update the module docstring to state that
제헌절 is a national holiday again from 2026 and that substitute holidays (대체공휴일)
apply starting 2027.
- Line 64: Update the archived law reference in south_korea.py: replace the
existing web.archive.org URL (the one with efYd=20220101&lsiSeq=233829) with the
archived link that points to the 2026-amended Act on Public Holidays (use the
efYd for the 2026 effective date, e.g. efYd=20260203, and the corresponding
lsiSeq for the 2026 amendment) so the archived page shows 제헌절 as a public
holiday; keep the same comment format and include the amendment date/notes so
the file documents when the holiday was added.

In `@tests/countries/test_south_korea.py`:
- Around line 353-358: The test_constitution_day test is missing assertions for
observed (substitute) holidays after the append_observed change in
south_korea.py; update the test_constitution_day function to assert that "제헌절 대체
휴일" (or f"{name} 대체 휴일") is present for dates where Constitution Day (July 17)
falls on a weekend from 2027 onward—generate expected substitute dates for those
years and add assertions using assertHolidayName for that range, while keeping
the existing base-date assertions intact.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (de01e80) to head (55d70fc).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff            @@
##               dev     #3284   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          307       307           
  Lines        18373     18373           
  Branches      2352      2352           
=========================================
  Hits         18373     18373           

☔ 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.

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.

Small suggestions, the rest of the PR looks pretty LGTM

@PPsyrius PPsyrius changed the title Add KR Constitution Day back as public holiday from 2026 Update South Korea holidays: add Constitution Day back for 2026 onwards Feb 20, 2026
- Replace Wayback Machine link with archive.today links for Public
  Holidays Act and National Day Act references
- Merge separate assertHolidayName calls for Constitution Day into one

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@sonarqubecloud
Copy link
Copy Markdown

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 🇰🇷

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.

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.

👍

@arkid15r arkid15r added this pull request to the merge queue Feb 20, 2026
@arkid15r
Copy link
Copy Markdown
Collaborator

@kawai10 thanks for the contribution 👍

Merged via the queue into vacanza:dev with commit 163eb68 Feb 20, 2026
31 checks passed
@KJhellico KJhellico mentioned this pull request Mar 2, 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.

5 participants