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

Add end_month and end_day feature to setup_fiscal_calendar #21

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

qwertytam
Copy link

Following on from discussion on #20 , adding support for end_month and end_day feature to setup_fiscal_calendar. My coding skillz are far from brilliant, so welcome any/all suggestions for improvement.

fiscalyear.py Outdated
"""Modify the fiscal calendar.

If either of ``start_month`` or ``start_day`` are present, ``end_month``
and ``end_day`` are ignored.
Copy link
Contributor

Choose a reason for hiding this comment

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

This might be surprising behavior. I think it would be preferable to throw an error when invalid combinations of arguments are supplied

@qwertytam
Copy link
Author

qwertytam commented Sep 15, 2021

Added logic to check for invalid combination of supplied arguments with 6955029

Implemented logic in new function _check_only_start_or_end_present. My idea is once this pull request is approved, can then copy the same logic flow to the fiscal_calendar decorator.

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

Successfully merging this pull request may close these issues.

2 participants