mixed-line-endings / C0327#

Message emitted:

Mixed line endings LF and CRLF

Description:

Used when there are mixed (LF and CRLF) newline signs in a file.

Problematic code:

print("Hello")  # CRLF (\r\n)
print("World")  # LF (\n) # [mixed-line-endings]

Correct code:

full_crlf.py:

print("Hello")  # CRLF (\r\n)
print("World")  # CRLF (\r\n)

full_lf.py:

print("Hello")  # LF (\n)
print("World")  # LF (\n)

Related links:

Created by the format checker.