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

Added Sri Lanka holidays #2228

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

Prateekshit73
Copy link
Contributor

Proposed change

Added Sri Lanka holidays
Closes #1272

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

Copy link

codecov bot commented Jan 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (982f53d) to head (89efe90).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev     #2228   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          196       197    +1     
  Lines        11849     11927   +78     
  Branches      1710      1719    +9     
=========================================
+ Hits         11849     11927   +78     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Makefile Show resolved Hide resolved
This reverts commit 8b59449.
Copy link
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.

Nice to see new country being added 🚀

Makefile Outdated Show resolved Hide resolved
Comment on lines +12 to +15
# SOME DESCRIPTIVE TITLE
# This file is distributed under the same license as the Holidays package.
# Prateekshit Jaiswal <prateekshitjaiswal73@gmail.com>, 2025.
#, fuzzy
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# SOME DESCRIPTIVE TITLE
# This file is distributed under the same license as the Holidays package.
# Prateekshit Jaiswal <prateekshitjaiswal73@gmail.com>, 2025.
#, fuzzy
#
# Sri Lanka holidays en_US localization.
#

Please use the standardized header format here

Comment on lines +12 to +15
# SOME DESCRIPTIVE TITLE
# This file is distributed under the same license as the Holidays package.
# Prateekshit Jaiswal <prateekshitjaiswal73@gmail.com>, 2025.
#, fuzzy
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# SOME DESCRIPTIVE TITLE
# This file is distributed under the same license as the Holidays package.
# Prateekshit Jaiswal <prateekshitjaiswal73@gmail.com>, 2025.
#, fuzzy
#
# Sri Lanka holidays ta_LK localization.
#

Comment on lines +12 to +15
# SOME DESCRIPTIVE TITLE
# This file is distributed under the same license as the Holidays package.
# Prateekshit Jaiswal <prateekshitjaiswal73@gmail.com>, 2025.
#, fuzzy
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# SOME DESCRIPTIVE TITLE
# This file is distributed under the same license as the Holidays package.
# Prateekshit Jaiswal <prateekshitjaiswal73@gmail.com>, 2025.
#, fuzzy
#
# Sri Lanka holidays.
#

Copy link
Contributor Author

Choose a reason for hiding this comment

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

After the make check command is executed, the output is as follows:


ruff-format..............................................................Failed
- hook id: ruff-format
- files were modified by this hook

1 file reformatted, 384 files left unchanged

The command restores the changes that were made.

holidays/countries/sri_lanka.py Outdated Show resolved Hide resolved
holidays/countries/sri_lanka.py Outdated Show resolved Hide resolved
Copy link

Quality Gate Failed Quality Gate failed

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

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Sri Lanka holidays
3 participants