Newline character (usually '\n', aka CR) found at the end of file.
* bold denotes default value
This aspect does not have any sub aspects.
def do_nothing(): pass
A text file consists of a series of lines, each of which ends with a newline character (\n). A file that is not empty and does not end with a newline is therefore not a text file.
It's not just bad style, it can lead to unexpected behavior, utilities that are supposed to operate on text files may not cope well with files that don't end with a newline.
How to fix this
NewlineAtEOF issues can be fixed by simply adding a newline at the end of the file.