.. _line-too-long: line-too-long / C0301 ===================== **Message emitted:** ``Line too long (%s/%s)`` **Description:** *Used when a line is longer than a given number of characters.* **Problematic code:** .. literalinclude:: /data/messages/l/line-too-long/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/l/line-too-long/good.py :language: python **Configuration file:** .. literalinclude:: /data/messages/l/line-too-long/pylintrc :language: ini **Additional details:** Pragma controls such as ``# pylint: disable=all`` are not counted toward line length for the purposes of this message. If you attempt to disable this message via ``# pylint: disable=line-too-long`` in a module with no code, you may receive a message for ``useless-suppression``. This is a false positive of ``useless-suppression`` we can't easily fix. See https://github.com/pylint-dev/pylint/issues/3368 for more information. Created by the `format `__ checker.