Skip to content

Update Egypt holidays: add Eid al-Fitr 2026 exact date#3474

Merged
arkid15r merged 9 commits into
vacanza:devfrom
aziamimoh:update-egypt-2026
Apr 11, 2026
Merged

Update Egypt holidays: add Eid al-Fitr 2026 exact date#3474
arkid15r merged 9 commits into
vacanza:devfrom
aziamimoh:update-egypt-2026

Conversation

@aziamimoh

Copy link
Copy Markdown
Contributor

Proposed change

Added Eid al-Fitr date for Egypt for 2026.

  • Date confirmed as March 20, 2026

  • Added corresponding test to ensure test coverage

Source: https://sis.gov.eg/en/media-center/news/dar-al-ifta-announces-friday-as-the-first-day-of-eidul-fitr/

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

coderabbitai Bot commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

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

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 41ad6538-0aca-41ba-9d95-a0fa187da083

📥 Commits

Reviewing files that changed from the base of the PR and between ae1582c and a48cc5b.

📒 Files selected for processing (1)
  • holidays/countries/egypt.py

Summary by CodeRabbit

  • New Features

    • Egypt's holiday calendar now includes confirmed dates for 2026 Eid al-Fitr celebrations, extending support through 2026.
  • Tests

    • Added test coverage for 2026 Eid al-Fitr holiday dates across both observed and non-observed categories.
  • Chores

    • Updated project contributors list.

Walkthrough

Extended Egypt's confirmed Eid al‑Fitr range to include 2026, updated tests to assert 2026 Eid dates (standard and government non-observed), and added Aziza Mohammed to CONTRIBUTORS.

Changes

Cohort / File(s) Summary
Contributors
CONTRIBUTORS
Inserted Aziza Mohammed after Avi Alkalay.
Egypt Islamic Holidays
holidays/countries/egypt.py
Bumped EID_AL_FITR_DATES_CONFIRMED_YEARS from (2020, 2025) to (2020, 2026) and added a 2026 reference link in class docstring.
Egypt Tests
tests/countries/test_egypt.py
Added expected Eid al‑Fitr 2026 dates: non‑observed 2026-03-20, 2026-03-21 and government non‑observed 2026-03-19, 2026-03-22.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • arkid15r
  • 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
Title check ✅ Passed The title clearly and specifically describes the main change: adding the 2026 Eid al-Fitr date for Egypt, which aligns perfectly with the changeset.
Description check ✅ Passed The description is directly related to the changeset, explaining the addition of Eid al-Fitr for 2026, providing the confirmed date and source.

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

❤️ Share

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

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

Inline comments:
In `@tests/countries/test_egypt.py`:
- Around line 203-205: The test currently lists explicit private/public dates
including "2026-03-20" and "2026-03-21" for Eid al-Fitr; extend the same test
method in tests/countries/test_egypt.py to also assert the corresponding 2026
government endpoints by adding the government endpoint entries for 2026 (the
same two dates) alongside the existing checks in that method so
government-specific assertions are pinned for 2026 as well.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 58854095-8e95-4404-b6c4-b4b90b279bde

📥 Commits

Reviewing files that changed from the base of the PR and between 8e468e0 and e35bd51.

📒 Files selected for processing (3)
  • CONTRIBUTORS
  • holidays/countries/egypt.py
  • tests/countries/test_egypt.py

Comment thread tests/countries/test_egypt.py Outdated
Comment thread tests/countries/test_egypt.py Outdated
Move source

Co-authored-by: Panpakorn Siripanich <19505219+PPsyrius@users.noreply.github.com>
Signed-off-by: Aziza Mohammed <114890850+aziamimoh@users.noreply.github.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

♻️ Duplicate comments (1)
tests/countries/test_egypt.py (1)

203-204: ⚠️ Potential issue | 🟡 Minor

Add missing 2026 government sector Eid al-Fitr dates to the test.

The test adds public sector dates for 2026 (03-20, 03-21) but the government sector dates are missing. Based on the pattern from prior years, government sector should be 2026-03-19 to 2026-03-22 (the day before through 2 days after the public holiday dates).

Update the explicit dates list in assertGovernmentIslamicNoEstimatedHolidayName (lines 215–231) to include these 2026 government sector dates.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/countries/test_egypt.py` around lines 203 - 204, The government-sector
Eid al-Fitr dates are missing for 2026 in the explicit dates list passed to
assertGovernmentIslamicNoEstimatedHolidayName; update that list (the explicit
dates argument in assertGovernmentIslamicNoEstimatedHolidayName) to include
"2026-03-19" and "2026-03-22" in addition to the existing "2026-03-20" and
"2026-03-21" so the government range covers the day before through two days
after the public-sector holiday.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@tests/countries/test_egypt.py`:
- Around line 203-204: The government-sector Eid al-Fitr dates are missing for
2026 in the explicit dates list passed to
assertGovernmentIslamicNoEstimatedHolidayName; update that list (the explicit
dates argument in assertGovernmentIslamicNoEstimatedHolidayName) to include
"2026-03-19" and "2026-03-22" in addition to the existing "2026-03-20" and
"2026-03-21" so the government range covers the day before through two days
after the public-sector holiday.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: e71a768c-6ad0-44ee-8527-5b57b362479e

📥 Commits

Reviewing files that changed from the base of the PR and between e35bd51 and 3ab8964.

📒 Files selected for processing (1)
  • tests/countries/test_egypt.py

@aziamimoh

Copy link
Copy Markdown
Contributor Author

I added another reference, moved them to egypt.py, and added the government endpoints.

Comment thread holidays/countries/egypt.py Outdated
PPsyrius and others added 2 commits April 9, 2026 12:42
Co-authored-by: ~Jhellico <KJhellico@users.noreply.github.com>
Signed-off-by: Panpakorn Siripanich <19505219+PPsyrius@users.noreply.github.com>
@PPsyrius PPsyrius requested a review from KJhellico April 9, 2026 05:43
@sonarqubecloud

sonarqubecloud Bot commented Apr 9, 2026

Copy link
Copy Markdown

@codecov

codecov Bot commented Apr 9, 2026

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff            @@
##               dev     #3474   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          313       313           
  Lines        18666     18666           
  Branches      2383      2383           
=========================================
  Hits         18666     18666           

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

@KJhellico KJhellico left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM.

@arkid15r arkid15r left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@aziamimoh thanks for adding that 👍

@arkid15r arkid15r added this pull request to the merge queue Apr 11, 2026
Merged via the queue into vacanza:dev with commit 977b43c Apr 11, 2026
32 checks passed
@KJhellico KJhellico mentioned this pull request Apr 20, 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.

4 participants