vacanza / holidays

Generate and work with holidays in Python
https://pypi.org/project/holidays
MIT License
1.45k stars 460 forks source link

Update SG: add 2025 official holidays #1903

Closed mborsetti closed 2 months ago

mborsetti commented 2 months ago

Proposed change

Added 2025 official holidays for Singapore

Source: Official Government news release at https://www.mom.gov.sg/newsroom/press-releases/2024/0805-public-holidays-for-2025

Testing source: official dates at https://www.mom.gov.sg/employment-practices/public-holidays

Type of change

Checklist

mborsetti commented 2 months ago

I guess pre-commit did not run automatically. And when run manually it doesn't do anything:

~\Documents\python\git_repos\python-holidays git:[sg_2025]
pre-commit
check python ast.....................................(no files to check)Skipped
check builtin type constructor use...................(no files to check)Skipped
check yaml...........................................(no files to check)Skipped
fix end of files.....................................(no files to check)Skipped
fix python encoding pragma (deprecated)..............(no files to check)Skipped
mixed line ending....................................(no files to check)Skipped
trim trailing whitespace.............................(no files to check)Skipped
ruff.................................................(no files to check)Skipped
ruff-format..........................................(no files to check)Skipped
check license headers................................(no files to check)Skipped
isort................................................(no files to check)Skipped
mypy.................................................(no files to check)Skipped
rstcheck.............................................(no files to check)Skipped
rst ``code`` is two backticks........................(no files to check)Skipped
tox-ini-fmt..........................................(no files to check)Skipped

Oh, I see it doesn't even have black or similar code formatter -- this was supposed to be a quick contribution, not a belabored one, and for those I rely on those automated tools to do the spacing cleanup for me.

Hopefully I manually caught everything; if not, would you be so kind to fix? Thx

BTW amazing progress -- I didn't have any time to look outside of this file, but love the structure (and hopefully runs much faster too!)

sonarcloud[bot] commented 2 months ago

Quality Gate Failed Quality Gate failed

Failed conditions
8.7% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (b536cfc) to head (24d8d6d).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev #1903 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 185 185 Lines 11263 11263 Branches 1785 1785 ========================================= Hits 11263 11263 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.