Release branch 2.13.9#6563
Conversation
#6532) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
|
I think this needs astroid 2.11.5 also. |
f48f187 to
5ec6699
Compare
5ec6699 to
ad8dcf6
Compare
ad8dcf6 to
24eb140
Compare
* Ignore specified files/directories in recursive mode Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
24eb140 to
acfe359
Compare
|
|
||
| if _is_ignored_file( | ||
| root, | ||
| self.config.ignore, |
There was a problem hiding this comment.
Ref. #6528 (comment)
This seems to work right @Pierre-Sassoulas?
On 2.13.x all config is still stored on the BaseChecker itself. Since PyLinter is a checker you can access it's options with self.config. If you need options from another checker you can do get_global_option which will look up options in the config attribute of all other registered checkers.
So, theoretically this should work and the passing tests seems to confirm this!
Edit: Never mind, spoke too soon. Let me have a look!
Edit2: You should use black_list. If you look at the definition of "ignore" it has a dest. Same goes for ignore_paths. You should look up their value with self.config."dest".
There was a problem hiding this comment.
I've had to do suspicious fix to make it work, in particular use ignore-patternS or ignore-pathS instead of ignore-pattern or ignore-path in the tests. Did we change an option ? Or maybe we do not check that the full option is used and argparse was handling it ?
…6602) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
acfe359 to
2884749
Compare
|
Blocked by a discussion on #6604 |
2884749 to
e211718
Compare
| What's New in Pylint 2.13.9? | ||
| ============================ | ||
| Release date: TBA | ||
| Release date: 2022-05-09 |
There was a problem hiding this comment.
| Release date: 2022-05-09 | |
| Release date: 2022-05-13 |
Need to be done offline so we can rebase-merge and tag a proper historic.
e211718 to
b3a15db
Compare
Blocked by #6528