-
Notifications
You must be signed in to change notification settings - Fork 473
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
Add Iran holidays #1409
Add Iran holidays #1409
Conversation
@xmha97, please look at Farsi translation, if you can. |
Pull Request Test Coverage Report for Build 5834193808
💛 - Coveralls |
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.
This is a huge contribution!
holidays/countries/iran.py
Outdated
|
||
def __init__(self, *args, **kwargs): | ||
IslamicHolidays.__init__(self) | ||
self.pcal = _Persian() |
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.
I suggest using more descriptive names e.g., persian_calendar
.
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.
You mean persian_calendar
instead of pcal
? Then _add_holiday(... won't fit in one line 🙄
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.
Yeah, Persian holidays group would help with that.
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.
lgtm 👍
@xmha97 could you review the names when you have a chance?
holidays/countries/iran.py
Outdated
|
||
def __init__(self, *args, **kwargs): | ||
IslamicHolidays.__init__(self) | ||
self.pcal = _Persian() |
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.
Yeah, Persian holidays group would help with that.
# Conflicts: # README.rst
# Conflicts: # holidays/holiday_groups.py
Proposed change
Closes #1202.
Type of change
Checklist
beta
branch of the repositorymake pre-commit
make test
,make tox
(we strongly encourage adding tests to your code)