From 1101467ce0756272a54f4c7bc65c4c335a94111b Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 4 Sep 2014 08:15:09 -0400 Subject: Limited lines to 119 characters in django/ refs #23395. --- docs/internals/contributing/writing-code/coding-style.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'docs/internals/contributing/writing-code') diff --git a/docs/internals/contributing/writing-code/coding-style.txt b/docs/internals/contributing/writing-code/coding-style.txt index 9ff58e8b30..c87e28cda8 100644 --- a/docs/internals/contributing/writing-code/coding-style.txt +++ b/docs/internals/contributing/writing-code/coding-style.txt @@ -16,11 +16,13 @@ Python style :pep:`8` is only a guide, so respect the style of the surrounding code as a primary goal. - One big exception to :pep:`8` is our preference of longer line lengths. - We're well into the 21st Century, and we have high-resolution computer - screens that can fit way more than 79 characters on a screen. Don't limit - lines of code to 79 characters if it means the code looks significantly - uglier or is harder to read. + An exception to :pep:`8` is our rules on line lengths. Don't limit lines of + code to 79 characters if it means the code looks significantly uglier or is + harder to read. We allow up to 119 characters as this is the width of GitHub + code review; anything longer requires horizontal scrolling which makes review + more difficult. This check is included when you run ``flake8``. Documentation, + comments, and docstrings should be wrapped at 79 characters, even though + :pep:`8` suggests 72. * Use four spaces for indentation. -- cgit v1.3