Site updated at 2017-08-27 11:18:59 UTC
This commit is contained in:
parent
405cd63eae
commit
d85d0d7752
28 changed files with 68 additions and 68 deletions
|
@ -88,7 +88,7 @@
|
|||
<p>The maximum line length comes directly from the <a href="https://www.python.org/dev/peps/pep-0008/#maximum-line-length">PEP8 style guide</a>, and is also used by the Python standard library. All code must pass these linting checks, and no exceptions will be made. There have already been numerous requests to increase the maximum line length, but after evaluating the options, the Home Assistant maintainers have decided to stay at 79 characters. This decision is final.</p>
|
||||
<p>Those points may require that you adjust your IDE or editor settings.</p>
|
||||
<h2><a class="title-link" name="our-recommandations" href="#our-recommandations"></a> Our recommandations</h2>
|
||||
<p>For some cases <a href="https://www.python.org/dev/peps/">PEPs</a> don’t make a statement. This section covers our recommandations about the code style. Those points were collected from the exisiting code and based on what contributors and developers were using the most. This is basically a majority decision, thus you may not agree with it. But we would like to encourage you follow those recommandations to keep the code unified.</p>
|
||||
<p>For some cases <a href="https://www.python.org/dev/peps/">PEPs</a> don’t make a statement. This section covers our recommendations about the code style. Those points were collected from the exisiting code and based on what contributors and developers were using the most. This is basically a majority decision, thus you may not agree with it. But we would like to encourage you follow those recommandations to keep the code unified.</p>
|
||||
<h3><a class="title-link" name="quotes" href="#quotes"></a> Quotes</h3>
|
||||
<p>Use single quotes <code class="highlighter-rouge">'</code> for single word and <code class="highlighter-rouge">"</code> for multiple words or sentences.</p>
|
||||
<div class="language-python highlighter-rouge"><pre class="highlight"><code><span class="n">ATTR_WATERLEVEL</span> <span class="o">=</span> <span class="s">'level'</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue