From 8bdddf6e89d9e232b0e67463a34f2926b0acfc6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Verg=C3=A9?= Date: Fri, 23 Nov 2018 14:13:04 +0100 Subject: [PATCH] docs: Warn about Python 2 and problems with line-length Closes #146. --- yamllint/rules/line_length.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/yamllint/rules/line_length.py b/yamllint/rules/line_length.py index e87972e..f7a2f2f 100644 --- a/yamllint/rules/line_length.py +++ b/yamllint/rules/line_length.py @@ -17,6 +17,10 @@ """ Use this rule to set a limit to lines length. +Note: with Python 2, the ``line-length`` rule may not work properly with +unicode characters because of the way strings are represented in bytes. We +recommend running yamllint with Python 3. + .. rubric:: Options * ``max`` defines the maximal (inclusive) length of lines.