Skip to content
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

Update AZ holidays: add 2025 special holidays #2154

Merged
merged 1 commit into from
Dec 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 30 additions & 5 deletions holidays/countries/azerbaijan.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@


class Azerbaijan(ObservedHolidayBase, InternationalHolidays, IslamicHolidays, StaticHolidays):
# [1] https://en.wikipedia.org/wiki/Public_holidays_in_Azerbaijan
# [2] https://az.wikipedia.org/wiki/Az%C9%99rbaycan%C4%B1n_d%C3%B6vl%C9%99t_bayramlar%C4%B1_v%C9%99_x%C3%BCsusi_g%C3%BCnl%C9%99ri
# [3] https://www.sosial.gov.az/en/prod-calendar
"""
References:
- https://en.wikipedia.org/wiki/Public_holidays_in_Azerbaijan
- https://az.wikipedia.org/wiki/Az%C9%99rbaycan%C4%B1n_d%C3%B6vl%C9%99t_bayramlar%C4%B1_v%C9%99_x%C3%BCsusi_g%C3%BCnl%C9%99ri
- https://www.sosial.gov.az/en/prod-calendar
"""

country = "AZ"
default_language = "az"
Expand Down Expand Up @@ -246,6 +249,21 @@ class AzerbaijanIslamicHolidays(_CustomIslamicHolidays):


class AzerbaijanStaticHolidays:
"""
Substituted holidays references:
- https://nk.gov.az/az/senedler/qerarlar/is-va-istirahat-gunlarinin-yerlarinin-dayisdirilmasi-haqqinda-5423
- https://nk.gov.az/az/senedler/qerarlar/is-va-istirahat-gunlarinin-yerlarinin--dayisdirilmasi-haqqinda-5982
- https://nk.gov.az/az/senedler/qerarlar/is-va-istirahat-gunlarinin-yerlarinin-dayisdirilmasi-haqqinda-6488
- https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-7047
- https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-7466
- https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-7576
- https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-7843
- https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-8332
- https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-8449
Special holidays references:
- https://www.msk.gov.az/en/elections/pages/municipal-elections/belediyye-29-01-2025
"""

eid_al_adha = tr("Qurban bayrami")
# Substituted date format.
substituted_date_format = tr("%d.%m.%Y")
Expand All @@ -255,6 +273,9 @@ class AzerbaijanStaticHolidays:
# Presidential elections.
presidential_elections = tr("Prezidenti seçkiləri")

# Municipal elections.
municipal_elections = tr("Bələdiyyə seçkiləri")

special_public_holidays = {
2011: (AUG, 29, AUG, 27),
2013: (
Expand All @@ -266,8 +287,7 @@ class AzerbaijanStaticHolidays:
(JAN, 6, DEC, 29, 2013),
),
2018: (APR, 11, presidential_elections),
# Municipal elections.
2019: (DEC, 27, tr("Bələdiyyə seçkiləri")),
2019: (DEC, 27, municipal_elections),
2020: (
(MAR, 27, MAR, 29),
(MAY, 27, MAY, 30),
Expand Down Expand Up @@ -295,6 +315,11 @@ class AzerbaijanStaticHolidays:
(APR, 12, APR, 6),
(NOV, 12, NOV, 16),
(NOV, 13, NOV, 23),
(DEC, 30, DEC, 28),
),
2025: (
(JAN, 3, DEC, 29, 2024),
(JAN, 29, municipal_elections),
),
}

Expand Down
3 changes: 3 additions & 0 deletions snapshots/countries/AZ_COMMON.json
Original file line number Diff line number Diff line change
Expand Up @@ -732,10 +732,13 @@
"2024-11-12": "Constitution Day; Day off (substituted from 11/16/2024)",
"2024-11-13": "Day off (substituted from 11/23/2024)",
"2024-11-17": "National Revival Day",
"2024-12-30": "Day off (substituted from 12/28/2024)",
"2024-12-31": "International Azerbaijanis Solidarity Day",
"2025-01-01": "New Year's Day",
"2025-01-02": "New Year's Day",
"2025-01-03": "Day off (substituted from 12/29/2024)",
"2025-01-20": "Martyrs' Day",
"2025-01-29": "Municipal elections",
"2025-03-08": "Women's Day",
"2025-03-10": "Women's Day (observed)",
"2025-03-20": "Spring Festival",
Expand Down
3 changes: 3 additions & 0 deletions tests/countries/test_azerbaijan.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def test_special_holidays(self):
"2018-04-11",
"2019-12-27",
"2024-02-07",
"2025-01-29",
"2072-01-05",
)

Expand Down Expand Up @@ -61,6 +62,8 @@ def test_substituted_holidays(self):
"2024-04-12",
"2024-11-12",
"2024-11-13",
"2024-12-30",
"2025-01-03",
)

def test_new_years_day(self):
Expand Down