Skip to content

Conversation

@chetmancini
Copy link
Owner

Summary

  • Fixed duplicate holidays bug: Holiday dates are now converted to a set internally, ensuring duplicates don't get double-counted
  • Generator support: All holiday parameters (workdays_between, add_business_days, is_business_day) now safely handle generators
  • Locale-aware date parsing: Added optional dayfirst parameter to parse_date for US vs European date format preference
  • 100% test coverage: Added 8 new tests covering edge cases and new features (118 tests total)

Testing

  • All 118 tests pass
  • Full type checking and linting pass
  • 100% code coverage achieved

…00% coverage

- Fix duplicate holidays bug: convert Iterable[date] to set to handle duplicates correctly
- Support generators in holiday parameters: workdays_between, add_business_days, is_business_day
- Add dayfirst parameter to parse_date for locale-aware date parsing (US vs European style)
- Document format precedence: US-style (M/D/Y) by default, European-style (D/M/Y) with dayfirst=True
- Add 8 new tests for generator inputs, duplicate holidays, dayfirst parsing, and generator edge cases
- Achieve 100% code coverage (118 tests passing)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@claude
Copy link

claude bot commented Jan 29, 2026


Code review

No issues found. Checked for bugs and CLAUDE.md compliance.


@chetmancini chetmancini merged commit 43ef2ba into master Jan 29, 2026
6 checks passed
@chetmancini chetmancini deleted the chetmancini/dateutils-review branch January 29, 2026 05:09
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