Skip to content

Update Ireland holidays: add OPTIONAL category#3260

Merged
arkid15r merged 11 commits intovacanza:devfrom
PredictiveManish:Ireland-holiday
Feb 11, 2026
Merged

Update Ireland holidays: add OPTIONAL category#3260
arkid15r merged 11 commits intovacanza:devfrom
PredictiveManish:Ireland-holiday

Conversation

@PredictiveManish
Copy link
Copy Markdown
Contributor

Proposed change

This PR adds optional Good Friday holiday support to the Ireland calendar via a new include_good_friday parameter.
Fixes #3255

While Good Friday is not an official public holiday in Ireland, it is widely observed by:

  • Financial institutions and banks (banking holiday)
  • Government offices
  • Many businesses for operational purposes
  • Stock exchange closures

This optional parameter allows users to include Good Friday for financial calculations, business day adjustments, and other use cases where it's relevant, while keeping the default behavior consistent with official public holiday listings that don't include Good Friday.

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 Feb 11, 2026

Summary by CodeRabbit

  • New Features

    • Ireland now supports optional holidays; Good Friday is available as an optional holiday.
  • Tests

    • Added tests verifying Good Friday is treated as an optional holiday for specific years.
  • Documentation

    • Updated README to reflect Ireland's supported categories.
  • Chores

    • Added a new contributor entry to CONTRIBUTORS.

Walkthrough

Adds OPTIONAL and PUBLIC imports and declares Ireland.supported_categories = (OPTIONAL, PUBLIC). Introduces _populate_optional_holidays to register Good Friday as an optional holiday. Adds tests for Good Friday, updates README supported categories, and appends Manish Tiwari to CONTRIBUTORS.

Changes

Cohort / File(s) Summary
Ireland holidays
holidays/countries/ireland.py
Add from holidays.constants import OPTIONAL, PUBLIC; set supported_categories = (OPTIONAL, PUBLIC); add _populate_optional_holidays and register Good Friday via the optional-holiday flow.
Tests
tests/countries/test_ireland.py
Add test_good_friday asserting Good Friday is treated as an optional holiday for specific years and across full-range checks.
Docs / Metadata
README.md, CONTRIBUTORS
Update Ireland supported categories in README.md to include OPTIONAL; append Manish Tiwari to CONTRIBUTORS.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Suggested reviewers

  • arkid15r
  • KJhellico
🚥 Pre-merge checks | ✅ 3 | ❌ 2
❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning PR adds optional Good Friday support but doesn't implement substitute/observed holidays for fixed-date holidays falling on weekends as requested in #3255. Implement substitute holiday logic for New Year's Day, St. Patrick's Day, Christmas, and St. Stephen's Day when they fall on weekends per issue #3255 requirements.
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 (3 passed)
Check name Status Explanation
Title check ✅ Passed Title accurately summarizes the main change: adding OPTIONAL category support for Ireland holidays.
Description check ✅ Passed Description explains the change (optional Good Friday support), provides context and rationale, and links to issue #3255.
Out of Scope Changes check ✅ Passed Changes focus on adding optional Good Friday support and updating README/tests/contributors, which align with the stated PR objectives.

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

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

No actionable comments were generated in the recent review. 🎉


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

You might want to implement "Good Friday" itself for the separate OPTIONAL supported category instead - see #3240, #2490 for examples and check out the contributing guide https://holidays.readthedocs.io/en/latest/contributing/ for test setups

You'll need to do the following as well:

  • Update readme file to include OPTIONAL category support for Ireland's
  • Add this for test_ireland.py file:
    def test_good_friday(self):
        name = "Good Friday"
        self.assertNoHolidayName(name)
        self.assertOptionalHolidayName(
            name,
            "2020-04-10",
            "2021-04-02",
            "2022-04-15",
            "2023-04-07",
            "2024-03-29",
            "2025-04-18",
        )
        self.assertOptionalHolidayName(name, self.full_range)

@github-actions github-actions bot added the test label Feb 11, 2026
coderabbitai[bot]
coderabbitai bot previously approved these changes Feb 11, 2026
@PPsyrius PPsyrius changed the title Add optional Good Friday support to Ireland holidays Update Ireland holidays: add OPTIONAL category Feb 11, 2026
coderabbitai[bot]
coderabbitai bot previously approved these changes Feb 11, 2026
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.

Last fixes 🎉

Co-authored-by: Panpakorn Siripanich <[email protected]>
Signed-off-by: Manish Tiwari <[email protected]>
coderabbitai[bot]
coderabbitai bot previously approved these changes Feb 11, 2026
Co-authored-by: Panpakorn Siripanich <[email protected]>
Signed-off-by: Manish Tiwari <[email protected]>
Co-authored-by: Panpakorn Siripanich <[email protected]>
Signed-off-by: Manish Tiwari <[email protected]>
coderabbitai[bot]
coderabbitai bot previously approved these changes Feb 11, 2026
Co-authored-by: Panpakorn Siripanich <[email protected]>
Signed-off-by: Manish Tiwari <[email protected]>
@sonarqubecloud
Copy link
Copy Markdown

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 11, 2026

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff            @@
##               dev     #3260   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          307       307           
  Lines        18377     18381    +4     
  Branches      2358      2358           
=========================================
+ Hits         18377     18381    +4     

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

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.

Thanks for the contribution @PredictiveManish 👍

@arkid15r arkid15r added this pull request to the merge queue Feb 11, 2026
Merged via the queue into vacanza:dev with commit 4284a1a Feb 11, 2026
32 checks passed
@PredictiveManish PredictiveManish deleted the Ireland-holiday branch February 12, 2026 03:34
@arkid15r arkid15r mentioned this pull request Feb 16, 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.

Add substitute/observed bank holidays for Ireland (IE)

4 participants