-
-
Notifications
You must be signed in to change notification settings - Fork 539
Create gambia.py #2447
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
Create gambia.py #2447
Conversation
Summary by CodeRabbit
WalkthroughA new Python module has been added to manage public holidays in The Gambia. This module defines functions to retrieve holidays for a specified year, using the Changes
✨ Finishing Touches
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:
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
|
|
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.
Actionable comments posted: 5
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
holidays/countries/gambia.py
(1 hunks)
🧰 Additional context used
🧬 Code Definitions (1)
holidays/countries/gambia.py (1)
holidays/holiday_base.py (1)
update
(1249-1275)
🪛 Ruff (0.8.2)
holidays/countries/gambia.py
13-13: print
found
Remove print
(T201)
51-51: print
found
Remove print
(T201)
79-79: print
found
Remove print
(T201)
81-81: print
found
Remove print
(T201)
84-84: print
found
Remove print
(T201)
86-86: print
found
Remove print
(T201)
87-87: print
found
Remove print
(T201)
88-88: print
found
Remove print
(T201)
88-88: Line too long (101 > 99)
(E501)
89-89: print
found
Remove print
(T201)
89-89: Line too long (111 > 99)
(E501)
90-90: print
found
Remove print
(T201)
90-90: Line too long (176 > 99)
(E501)
90-90: No newline at end of file
Add trailing newline
(W292)
🔇 Additional comments (1)
holidays/countries/gambia.py (1)
55-67
: Good implementation of the Easter calculation algorithm.The Easter calculation function is well-implemented with proper error handling and a docstring.
@yashwanth2307, I recommend you to look at the code of other countries to learn about the code style and features used in the project. |
Please take a look at some recently merged PR examples: |
Proposed change
Your PR description goes here.
Type of change
holidays
functionality in general)Checklist
make check
, all checks and tests are greenI have added the calendar for gambia
holidays/countries/gambia.py