-
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
🔧 Added sourcery config file #811
Conversation
Codecov Report
@@ Coverage Diff @@
## staging #811 +/- ##
=======================================
Coverage 84.5% 84.5%
=======================================
Files 75 75
Lines 4201 4201
Branches 757 757
=======================================
Hits 3553 3553
Misses 515 515
Partials 133 133 Continue to review full report at Codecov.
|
and added 'simplify-boolean-comparison' to ignore 'if something is True' prevents bugs where something is a callable, where 'if something():' would evaluate to False but 'if something:' evaluated to true since the callable object exists.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌 LGTM
663278f
to
dffcac2
Compare
Kudos, SonarCloud Quality Gate passed!
|
Benchmark is done. Checkout the benchmark result page. Benchmark diffParametrized benchmark signatures: BenchmarkOptimize.time_optimize(index_dependent, grouped, weight)
|
Added 'simplify-boolean-comparison' to ignore 'if something is True' prevents bugs where something is a callable, where 'if something():' would evaluate to False but 'if something:' evaluated to true since the callable object exists.
Just for reference when we need to tweak sourcery again here are the rules |
Added sourcery config file and added 'simplify-boolean-comparison' to ignore.
This prevents expressions like
if something is True
to be refactored.Background
'if something is True' prevents bugs where something is a callable, where 'if something():' would evaluate to False but 'if something:' evaluated to true since the callable object exists.
While using this explicit syntax creates a longer instruction list, the performance impact is neglectable.
Change summary
simplify-boolean-comparison
to ignoreChecklist