Skip to content

Update speedate to 0.11.0 #769

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

Merged
merged 3 commits into from
Jul 13, 2023
Merged

Update speedate to 0.11.0 #769

merged 3 commits into from
Jul 13, 2023

Conversation

adriangb
Copy link
Member

@adriangb adriangb commented Jul 13, 2023

Selected Reviewer: @davidhewitt

tz_offset: None,
tz_offset: dt.time.tz_offset,
Copy link
Member Author

Choose a reason for hiding this comment

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

@samuelcolvin what are your thoughts on this? It means that we allow datetime(2023, 7, 13, 0, 0, 0, tzinfo=timezone.utc) -> date(2023, 7, 13). We need it because when we parse a unix timestamp to a date it goes through a datetime first. I can try to work around it but maybe it's reasonable as is.

Copy link
Member

Choose a reason for hiding this comment

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

I think it seems fine.

Simpler might be to just do dt.time.hour == 0 && ... && dt.time.microsecond == 0?

@adriangb
Copy link
Member Author

please review

@codecov
Copy link

codecov bot commented Jul 13, 2023

Codecov Report

Merging #769 (16828c1) into main (0c0e391) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #769   +/-   ##
=======================================
  Coverage   93.66%   93.66%           
=======================================
  Files          99       99           
  Lines       14247    14264   +17     
  Branches       25       25           
=======================================
+ Hits        13344    13361   +17     
  Misses        897      897           
  Partials        6        6           
Impacted Files Coverage Δ
src/input/datetime.rs 98.84% <100.00%> (+0.06%) ⬆️
src/validators/date.rs 95.49% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0c0e391...16828c1. Read the comment docs.

@codspeed-hq
Copy link

codspeed-hq bot commented Jul 13, 2023

CodSpeed Performance Report

Merging #769 will not alter performance

Comparing update-speedate-2 (16828c1) with main (3345f3e)

Summary

✅ 126 untouched benchmarks

Copy link
Member

@samuelcolvin samuelcolvin left a comment

Choose a reason for hiding this comment

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

otherwise LGTM.

tz_offset: None,
tz_offset: dt.time.tz_offset,
Copy link
Member

Choose a reason for hiding this comment

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

I think it seems fine.

Simpler might be to just do dt.time.hour == 0 && ... && dt.time.microsecond == 0?

@adriangb adriangb enabled auto-merge (squash) July 13, 2023 17:19
@adriangb adriangb merged commit 16a05d3 into main Jul 13, 2023
@adriangb adriangb deleted the update-speedate-2 branch July 13, 2023 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants