Browse files

Added note to coding-style.txt about how we should NOT be religious a…

…bout line lengths.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
adrian committed Feb 17, 2012
1 parent e20b54d commit 28b0d93ee58a82d2f43991d0a9d1bc384b8d7438
Showing with 7 additions and 1 deletion.
  1. +7 −1 docs/internals/contributing/writing-code/coding-style.txt
@@ -1,5 +1,5 @@
-Coding Style
+Coding style
Please follow these coding standards when writing code for inclusion in Django.
@@ -13,6 +13,12 @@ Python style
area, but remember that :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.
* Use four spaces for indentation.
* Use underscores, not camelCase, for variable, function and method names

0 comments on commit 28b0d93

Please sign in to comment.