-
-
Notifications
You must be signed in to change notification settings - Fork 544
Add Mali holidays #2725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Add Mali holidays #2725
Conversation
Summary by CodeRabbit
WalkthroughSupport for Mali's holidays has been added, including a new country module, localizations in French and English, registry updates, documentation, and a comprehensive test suite. The implementation defines Mali's public holidays, integrates Islamic holiday calculations, and ensures localization and alias support. Changes
Suggested labels
Suggested reviewers
✨ Finishing Touches
🧪 Generate 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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #2725 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 264 265 +1
Lines 15783 15824 +41
Branches 2133 2137 +4
=========================================
+ Hits 15783 15824 +41 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great research!
from holidays.groups import ( | ||
ChristianHolidays, | ||
InternationalHolidays, | ||
IslamicHolidays, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from holidays.groups import ( | |
ChristianHolidays, | |
InternationalHolidays, | |
IslamicHolidays, | |
) | |
from holidays.groups import ChristianHolidays, InternationalHolidays, IslamicHolidays |
|
||
def _populate_public_holidays(self): | ||
# New Year's Day. | ||
self._add_new_years_day(tr("Jour de l'an")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self._add_new_years_day(tr("Jour de l'an")) | |
self._add_new_years_day(tr("Jour de l'An")) |
self._add_easter_monday(tr("Lundi de Pâques")) | ||
|
||
# Labor Day. | ||
self._add_labor_day(tr("Fête du travail")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self._add_labor_day(tr("Fête du travail")) | |
self._add_labor_day(tr("Fête du Travail")) |
|
||
if self._year >= 1965: | ||
# Africa Day. | ||
self._add_holiday_may_25(tr("Journée de l'Afrique")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self._add_holiday_may_25(tr("Journée de l'Afrique")) | |
self._add_africa_day(tr("Journée de l'Afrique")) |
self._add_mawlid_day(tr("Journée du Mawloud")) | ||
|
||
# Eid al-Fitr. | ||
self._add_eid_al_fitr_day(tr("Journée de la fête du Ramadan")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self._add_eid_al_fitr_day(tr("Journée de la fête du Ramadan")) | |
self._add_eid_al_fitr_day(tr("Journée de la Fête du Ramadan")) |
All names - from Law No. 40.
|
||
# Prophet's Birthday. | ||
self._add_mawlid_day(tr("Journée du Mawloud")) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Law No. 40 estaablished also Prophet's Baptism:
Journées du Maouloud (Naissance et Baptême) ;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK it's included in the original Ordinance no. 54 of 1960 as well:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is only Prophet's Birthday itself (Journée, day).
# March 26 Day. | ||
self._add_holiday_mar_26(tr("Journée du 26 mars")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe "Martyrs' Day" as en_US translation?
Proposed change
Add Mali holidays.
Resolves #1224.
Type of change
holidays
functionality in general)Checklist
make check
, all checks and tests are green