-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Use node.position
in add_message
if available
#5897
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
Conversation
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.
The current change LGTM :)
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.
The current change LGTM :)
👍🏻
@Pierre-Sassoulas Let's merge this first before we add all the regression test PRs. Otherwise we need to keep rebasing this. |
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.
Missed that earlier, do we have an option for error messages to either opt out of or opt into using the position
attribute? Say for example one message should be emitted for the whole function and not just the def <name>
. Maybe a new parameter for add_message
?
If you supply Note: apparently 3.8 is broken... I'll merge the other test PRs first while working on this. |
Pull Request Test Coverage Report for Build 1973639791
💛 - Coveralls |
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.
Thank you @DanielNoord !
My initial idea was a parameter to toggle between both options. Not passing each value individually. However, after comparing the changes here, I think it might no longer be necessary. So far I haven't found a case were it would be noticeable better to mark the whole code block. Let's leave it as it is for now. |
doc/whatsnew/<current release.rst>
.Type of Changes
Description
Closes #5466.
I'd like to get approval on the code before I do the automatic updating of the tests. So please review this already even if tests fail 😄