Skip to content

Files

Latest commit

 

History

History
28 lines (17 loc) · 463 Bytes

File metadata and controls

28 lines (17 loc) · 463 Bytes

Pattern: Missing newline at end of file

Issue: -

Description

Files should end with a newline.

Example of incorrect code:

Imagine the example below is an entire file.

import os

BASE_DIR = os.path.dirname(os.path.abspath(__file__))

Example of correct code:

Imagine the example below is an entire file.

import os

BASE_DIR = os.path.dirname(os.path.abspath(__file__))
# This is a new line that ends the file.