-
Notifications
You must be signed in to change notification settings - Fork 10
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
Remove blanks at line endings #140
Conversation
Signed-off-by: Stefan Weil <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #140 +/- ##
=======================================
Coverage 37.77% 37.77%
=======================================
Files 9 9
Lines 998 998
Branches 212 212
=======================================
Hits 377 377
Misses 555 555
Partials 66 66
Continue to review full report at Codecov.
|
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.
Trailing newlines are a bit annoying for me too but not so much that I want to mess with the git blame
output (yes, there is -w
but still).
We cannot avoid handling this problem: good editors remove such blanks automatically, so any time I edit one of those files, I am confronted with the problem, and so I am when I run |
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.
Almost all of these are empty lines. This topic has come up over and over again, and I still haven't heard a good counter-argument:
Blank lines inside comments used to be recommended including proper whitespace indentation in PEP8. But that changed at some point. But even today, this convention is necessary if you want to copy code verbatim into the interpreter, and the compiler still accepts both forms. Pylint can be told not to mock the old convention when configured no-space-check=empty-line
(as is the case here).
(The old convention also makes paragraph text processing/folding easier, e.g. in Emacs.)
I still think it would be good to follow the convention and avoid blanks at line endings, but close this issue to reduce the list of open pull requests. |
Yes, in the meantime I have seen these arguments, i.e. pylint does not support |
Signed-off-by: Stefan Weil [email protected]