C0301

Message

Line too long (%s/%s)

Description

Used when a line is longer than the limit specified in the max-line-length option.

Explanation

It is a good idea to keep each line within a maximum length to keep it from wrapping past the edge of an editing window. This improves readability and tempers other developers' irritability! It is also recommended in PEP 8.

The default value of the max-line-length option is 80, the customary width of a terminal window. PEP 8 recommends 79.

Note that the line length and the limit are counted in characters, not in Bytes needed to represent these characters.

Todo: Clarify whether or not the line end character(s) are included in the count.


Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License