-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Release branch 2.13.9 #6563
Release branch 2.13.9 #6563
Conversation
#6532) Co-authored-by: Pierre Sassoulas <[email protected]> Co-authored-by: Daniël van Noord <[email protected]>
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 <[email protected]> Co-authored-by: Daniël van Noord <[email protected]>
24eb140
to
acfe359
Compare
pylint/lint/pylinter.py
Outdated
|
||
if _is_ignored_file( | ||
root, | ||
self.config.ignore, |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 ?
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.
…6602) Co-authored-by: Pierre Sassoulas <[email protected]>
acfe359
to
2884749
Compare
Blocked by a discussion on #6604 |
2884749
to
e211718
Compare
ChangeLog
Outdated
@@ -18,8 +18,32 @@ Release date: TBA | |||
|
|||
What's New in Pylint 2.13.9? | |||
============================ | |||
Release date: TBA | |||
Release date: 2022-05-09 |
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.
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