Skip to content

missing-newline-at-end-of-file (W292)#

Derived from the pycodestyle linter.

Fix is always available.

What it does#

Checks for files missing a new line at the end of the file.

Why is this bad?#

Trailing blank lines are superfluous. However the last line should end with a new line.

Example#

spam(1)

Use instead:

spam(1)\n