-
Notifications
You must be signed in to change notification settings - Fork 18
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
🩹 Fix pretty_format_numerical for negative values #1192
Conversation
Sourcery Code Quality Report❌ Merging this PR will decrease code quality in the affected files by 0.98%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Help us improve this quality report! |
Benchmark is done. Checkout the benchmark result page. Benchmark diff v0.6.0 vs. mainParametrized benchmark signatures: BenchmarkOptimize.time_optimize(index_dependent, grouped, weight)
Benchmark diff main vs. PRParametrized benchmark signatures: BenchmarkOptimize.time_optimize(index_dependent, grouped, weight)
|
Codecov ReportBase: 87.6% // Head: 87.6% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1192 +/- ##
=====================================
Coverage 87.6% 87.6%
=====================================
Files 104 104
Lines 4954 4959 +5
Branches 821 823 +2
=====================================
+ Hits 4344 4349 +5
Misses 493 493
Partials 117 117
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
d680f53
to
ba7ab9f
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
While working on the extras I discovered that I implemented
pretty_format_numerical
with a stupid bug that breaks it's functionality when confronted with negative values (not to myself useabs
when comparing absolute values 🤦♀️).We didn't encounter it because:
a) It is only used for t-values
b) The unit tests for it only used positive numbers (100% line coverage != bug free)🤦♀️
Change summary
Checklist