Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…bout line lengths.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9fa536dc4f1b4c815ad21a28290bc5142d339cc1 1 parent 7ecb681
Adrian Holovaty authored
8  docs/internals/contributing/writing-code/coding-style.txt
... ...
@@ -1,5 +1,5 @@
1 1
 ============
2  
-Coding Style
  2
+Coding style
3 3
 ============
4 4
 
5 5
 Please follow these coding standards when writing code for inclusion in Django.
@@ -13,6 +13,12 @@ Python style
13 13
   area, but remember that :pep:`8` is only a guide, so respect the style of
14 14
   the surrounding code as a primary goal.
15 15
 
  16
+  One big exception to :pep:`8` is our preference of longer line lengths.
  17
+  We're well into the 21st Century, and we have high-resolution computer
  18
+  screens that can fit way more than 79 characters on a screen. Don't limit
  19
+  lines of code to 79 characters if it means the code looks significantly
  20
+  uglier or is harder to read.
  21
+
16 22
 * Use four spaces for indentation.
17 23
 
18 24
 * Use underscores, not camelCase, for variable, function and method names

0 notes on commit 9fa536d

Please sign in to comment.
Something went wrong with that request. Please try again.