Skip to content

Conversation

@cadu-leite
Copy link
Owner

This commit introduces a new method last_workday_of_month to the Networkdays class. This method calculates the last working day of a given month, taking into account weekends and holidays defined in the Networkdays instance.

The implementation finds the last day of the month and iterates backwards, checking each day to see if it is a workday.

Unit tests have been added to verify the functionality of the new method under various conditions, including months with holidays and custom weekend days.

google-labs-jules bot and others added 3 commits August 7, 2025 13:18
This commit introduces a new method `last_workday_of_month` to the `Networkdays` class. This method calculates the last working day of a given month, taking into account weekends and holidays defined in the `Networkdays` instance.

The implementation finds the last day of the month and iterates backwards, checking each day to see if it is a workday.

Unit tests have been added to verify the functionality of the new method under various conditions, including months with holidays and custom weekend days.
This commit introduces a Code of Conduct to the project to foster a welcoming and inclusive community.

A `CODE_OF_CONDUCT.md` file has been added, based on the Contributor Covenant. The enforcement section points to the project maintainer's GitHub profile for reporting any issues.

The `README.rst` has been updated to include a link to the new Code of Conduct, making it more visible to contributors.
@cadu-leite cadu-leite merged commit 3163b1b into master Aug 7, 2025
3 of 4 checks passed
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.

1 participant