{{ message }}
Enforce Pylint rules#3131
Open
DimitriPapadopoulos wants to merge 16 commits into
Open
Conversation
17048f6 to
bc765d8
Compare
Contributor
Contributor
Author
|
I think Sourcery applies linter rules, but rules that might not be part of ruff (yet). More importantly, I think Sourcery is a good addition - AI assistance for PR review. But I understand you don't agree with it. Some of the Sourcery suggestions - n_ellipsis = sum(1 for i in selection if i is Ellipsis)
+ n_ellipsis = selection.count(Ellipsis)How about keeping the couple changes that really make sense? |
bec6be5 to
7270dd1
Compare
f55e79a to
5a1df20
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3131 +/- ##
==========================================
- Coverage 93.54% 93.51% -0.03%
==========================================
Files 90 90
Lines 11936 11926 -10
==========================================
- Hits 11165 11153 -12
- Misses 771 773 +2 🚀 New features to boost your workflow:
|
58a885b to
ae772b5
Compare
ae772b5 to
03d87ce
Compare
679e33e to
6c9c486
Compare
6c9c486 to
3161442
Compare
154599e to
c2d9a0d
Compare
Disable rules that: - we don't want to fix, - have been implemenetd in ruff, - could be enabled later and are currently followed by `FIXME`.
FURB140 Use `itertools.starmap` instead of the generator
c2d9a0d to
c0f3644
Compare
Unnecessary ellipsis constant
Attribute '_is_open' defined outside __init__
4f8ab1b to
a5810fa
Compare
Useless parent or super() delegation in method '__init__'
1ab793d to
1e4bc11
Compare
Unnecessary parens after 'not' keyword Unnecessary parens after ':=' keyword
Do not raise StopIteration in generator, use return statement instead
1e4bc11 to
60f9a1a
Compare
Lambda may not be necessary
Unnecessary use of a comprehension
Simplify chained comparison between the operands
Consider iterating with .items()
__init__ method from base class is not called
Unnecessarily calls dunder method __init__. Instantiate class directly.
84b74a3 to
c019f41
Compare
c019f41 to
aa2ed50
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Also a couple Pylint rules that may not yet be implemented in ruff.Edit: Run Pylint in addition to ruff, because not all Pylint rules have been or can be implemented in ruff.
TODO:
docs/user-guide/*.rstchanges/