-
-
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
Fix: [unknown-option-value] False negative after --disable=all #9491
Fix: [unknown-option-value] False negative after --disable=all #9491
Conversation
Signed-off-by: Dennis Keck <[email protected]>
Signed-off-by: Dennis Keck <[email protected]>
for more information, see https://pre-commit.ci
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I plan to take another look but lately had not really much capacity. If the issue is urgent though, please feel free to take over. |
Signed-off-by: Dennis Keck <[email protected]>
for more information, see https://pre-commit.ci
Signed-off-by: Dennis Keck <[email protected]>
This comment has been minimized.
This comment has been minimized.
Signed-off-by: Dennis Keck <[email protected]>
52a8742
to
7809902
Compare
Codecov ReportAll modified and coverable lines are covered by tests β
Additional details and impacted files@@ Coverage Diff @@
## main #9491 +/- ##
==========================================
- Coverage 95.82% 95.79% -0.03%
==========================================
Files 174 174
Lines 18813 18925 +112
==========================================
+ Hits 18027 18130 +103
- Misses 786 795 +9
|
pylint/constants.py
Outdated
@@ -43,6 +43,19 @@ | |||
MSG_TYPES_LONG: dict[str, str] = {v: k for k, v in MSG_TYPES.items()} | |||
|
|||
MSG_TYPES_STATUS = {"I": 0, "C": 16, "R": 8, "W": 4, "E": 2, "F": 1} | |||
PYLINT_MSGS = [ |
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.
Can we get this dynamically from the PyLinter
class?
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 @DanielNoord, I now understood the meaning of the MSGS
constant after taking another look and got rid of this unnecessary additional constant.
Do you mind taking another look?
01911de
to
8449c81
Compare
Signed-off-by: Dennis Keck <[email protected]>
8449c81
to
453c9e1
Compare
This comment has been minimized.
This comment has been minimized.
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, the implementation and test look great. One small nit and I think we can merge.
You can |
Signed-off-by: Dennis Keck <[email protected]>
Signed-off-by: Dennis Keck <[email protected]>
π€ According to the primer, this change has no effect on the checked open source code. π€π This comment was generated for commit 6548d2c |
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 for contributing this fix, and congrats on your first PR! Was a pleasure to collaborate.
Type of Changes
Description
Closes #9403 by excluding a set of internal pylint messages from
--disable=all
.As this is my first PR to pylint I appreciate any comment on the solution. Especially in regards of the message codes and having to change an existing test.