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
Add disable-next
option
#4797
Add disable-next
option
#4797
Conversation
Adding `# pylint: disable-next=msgid` to your file will disable the message for the next line. This closes pylint-dev#1682
#1682 also discusses another issue about disabling |
I think the failing tests are due to changes to the Python 3.10 runner. Probably related to the release of RC1 on Monday. The tests on the |
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 think the failing tests are due to changes to the Python 3.10 runner.
Definitely, we can also see it in #4777
Regarding code QL, I dismissed them, there's no secret here, it's just a variable name in a functional test.
I think this solve the issue with line too long, we have a way to disable only one line when the line is long. thanks a lot for the implementation 👍
I doesn't fully solve this comment though. Which got quite a bit of thumb-up's. So perhaps we need to keep it open/make a new issue? |
I understand this comment as |
I don't fully agree. I think the comment that we shouldn't cut off the |
Ok it makes sense, what about creating another issue for a checker for code + comment > max char ? |
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.
We need a little example in the documentation (FAQ and message control chapter). This is a pretty important feature, and I think it need to be visible :)
Not the best documentation writer. Please add whatever you deem necessary! |
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.
No no, it was perfect, thank you 😄
484e2ef
to
602a596
Compare
Original poster of #1682, here. Thank you guys for this feature. |
doc/whatsnew/<current release.rst>
.Type of Changes
Description
Adding
# pylint: disable-next=msgid
to your file will disable the message for the next line.Similar to how many linter and checkers do this.
This closes #1682