Site updated at 2016-08-26 09:48:14 UTC

This commit is contained in:
Travis CI 2016-08-26 09:48:14 +00:00
parent 46656d9c0a
commit 77a224dd00
24 changed files with 57 additions and 51 deletions

View file

@ -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>