Site updated at 2016-08-26 09:48:14 UTC
This commit is contained in:
parent
46656d9c0a
commit
77a224dd00
24 changed files with 57 additions and 51 deletions
|
@ -121,6 +121,12 @@
|
|||
</code></pre>
|
||||
</div>
|
||||
|
||||
<p>You also run linting tests against all changed files, as reported by <code class="highlighter-rouge">git diff upstream/dev --name-only</code> using the <code class="highlighter-rouge">lint</code> script:</p>
|
||||
|
||||
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">home-assistant$ </span>script/lint --changed
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<h3><a class="title-link" name="prevent-linter-errors" href="#prevent-linter-errors"></a> Prevent Linter Errors</h3>
|
||||
|
||||
<p>You can save yourself the hassle of extra commits just to fix style errors by enabling the flake8 git commit hook. It will check your code when you attempt to commit to the repository. It will block the commit if there are any style issues, giving you a chance to fix it.</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue