Currently, normalize_date_string uses datetime.now() directly. This makes it hard to test deterministically. Add an optional reference_date parameter that defaults to None.
Injecting the current time via a parameter allows tests to pass fixed dates, eliminating flaky tests around midnight boundaries.
reference_date: datetime = None parameterreference_date or datetime.now() inside the functionpre-commit run --all-files