pola-rs / polars

Dataframes powered by a multithreaded, vectorized query engine, written in Rust
https://docs.pola.rs
Other
26.63k stars 1.63k forks source link

refactor(python): Clean up hypothesis decimal strategy #16056

Closed stinodego closed 1 week ago

stinodego commented 1 week ago

Following up on #16001, I figured out a much cleaner way to do this using decimal Context and next_minus.

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 80.97%. Comparing base (b57f8ea) to head (520d034).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #16056 +/- ## ========================================== - Coverage 80.97% 80.97% -0.01% ========================================== Files 1386 1386 Lines 178385 178382 -3 Branches 3060 3059 -1 ========================================== - Hits 144446 144441 -5 - Misses 33450 33452 +2 Partials 489 489 ``` | [Flag](https://app.codecov.io/gh/pola-rs/polars/pull/16056/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pola-rs) | Coverage Δ | | |---|---|---| | [python](https://app.codecov.io/gh/pola-rs/polars/pull/16056/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pola-rs) | `74.51% <100.00%> (-0.01%)` | :arrow_down: | | [rust](https://app.codecov.io/gh/pola-rs/polars/pull/16056/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pola-rs) | `78.15% <25.00%> (-0.01%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pola-rs#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.