-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[MAINTENANCE] Enable SIM201 #9835
Conversation
✅ Deploy Preview for niobium-lead-7998 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Thanks!
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #9835 +/- ##
========================================
Coverage 82.51% 82.51%
========================================
Files 504 504
Lines 45082 45082
========================================
+ Hits 37200 37201 +1
+ Misses 7882 7881 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
# Conflicts: # pyproject.toml
https://docs.astral.sh/ruff/rules/negate-equal-op/
negate-equal-op (SIM201)
Derived from the flake8-simplify linter.
Fix is always available.
What it does
Checks for negated
==
operators.Why is this bad?
Negated
==
operators are less readable than!=
operators. When testingfor non-equality, it is more common to use
!=
than==
.Example
Use instead:
References