Closed pixeebot[bot] closed 3 months ago
Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information
Check out the playback for this Pull Request here.
Thanks @pixeebot[bot] for opening this PR!
For COLLABORATOR only :
To add labels, comment on the issue
/label add label1,label2,label3
To remove labels, comment on the issue
/label remove label1,label2,label3
Unable to locate .performanceTestingBot config file
Processing PR updates...
PR Details of @pixeebot[bot] in beer-garden-beer-garden : | OPEN | CLOSED | TOTAL |
---|---|---|---|
3 | 5 | 8 |
[!IMPORTANT]
Auto Review Skipped
Bot user detected.
To trigger a single review, invoke the
@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This change may not be a priority right now, so I'll close it. If there was something I could have done better, please let me know!
You can also customize me to make sure I'm working with you in the way you want.
In most programming languages, floating point arithmetic is imprecise due to the way floating point numbers are stored as binary representations. Moreover, the result of calculations with floats can vary based on when rounding happens. Using equality or inequality to compare floats or their operations will almost always be imprecise and lead to bugs.
For these reasons, this codemod changes any operations involving equality or inequality with floats to the recommended
math.isclose
function. This codemod uses the default parameter valuesrel_tol=1e-09
andabs_tol=0.0
but makes them explicit as a starting point for you to consider depending on your calculation needs.Our changes look like the following:
More reading
* [https://docs.python.org/3/tutorial/floatingpoint.html#floating-point-arithmetic-issues-and-limitations](https://docs.python.org/3/tutorial/floatingpoint.html#floating-point-arithmetic-issues-and-limitations) * [https://docs.python.org/3/library/math.html#math.isclose](https://docs.python.org/3/library/math.html#math.isclose)🧚🤖Powered by Pixeebot (codemod ID: pixee:python/fix-float-equality)