Skip to content

Commit 4ad58e9

Browse files
1 parent 7a6cbff commit 4ad58e9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

code_style_guide.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ <h2 id="clarifications">Clarifications</h2>
203203
<h2 id="exceptions">Exceptions</h2>
204204

205205
<ul>
206-
<li>Lines containing a long URL may be longer than 80 columns if necessary to
206+
<li>Drake uses an 80-character limit, instead of PEP 8’s limit of 79. Docstrings
207+
may also use all 80 characters (ignoring the limit of 72 from PEP 8).</li>
208+
<li>Lines containing a long URL may be longer than 80 characters if necessary to
207209
avoid splitting the URL.</li>
208210
</ul>
209211

styleguide/pyguide.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2190,10 +2190,7 @@ <h4 id="383-functions-and-methods">3.8.3 Functions and Methods</h4>
21902190
<dt><a href="#doc-function-args"><em>Args:</em></a></dt>
21912191
<dd>List each parameter by name. A description should follow the name, and be
21922192
separated by a colon followed by either a space or newline. If the
2193-
description is too long to fit on a single
2194-
<span class="nondrake">80-character</span>
2195-
<span class="drake">79-character*</span>
2196-
line, use a hanging
2193+
description is too long to fit on a single 80-character line, use a hanging
21972194
indent of 2 or 4 spaces more than the parameter name (be consistent with the
21982195
rest of the docstrings in the file). The description should include required
21992196
type(s) if the code does not contain a corresponding type annotation. If a

0 commit comments

Comments
 (0)