<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git-hook-pre-commit-python-javascript-syntax-linter/pre-commit, branch master</title>
<subtitle>Before committing run `flake8` and `jshint` on staged files</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-hook-pre-commit-python-javascript-syntax-linter/'/>
<entry>
<title>pre-commit: Remove unnecessary commented lines</title>
<updated>2015-09-27T18:49:46+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-09-27T18:49:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-hook-pre-commit-python-javascript-syntax-linter/commit/?id=7a5b8b3e0df6c236e96deb6a1fa1a82b93425f61'/>
<id>7a5b8b3e0df6c236e96deb6a1fa1a82b93425f61</id>
<content type='text'>
Remove leftovers from the git sample pre-commit hook that we don't
really need in this script.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove leftovers from the git sample pre-commit hook that we don't
really need in this script.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add JavaScript linting and tests</title>
<updated>2015-09-27T17:20:55+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-09-27T17:20:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-hook-pre-commit-python-javascript-syntax-linter/commit/?id=2a88fb92f4c1fbb3533e589d5c9f4b5c17595d3f'/>
<id>2a88fb92f4c1fbb3533e589d5c9f4b5c17595d3f</id>
<content type='text'>
* Add sample malformed JavaScript files to lint on
* In our tests, copy the `node_modules` directory to make `jshint`
  available, then validate that we're correctly linting the staged JS
  file
* In our pre-commit hook, lint the staged JavaScript files. If either of
  our linting commands fail then exit 1 to abort the commit.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add sample malformed JavaScript files to lint on
* In our tests, copy the `node_modules` directory to make `jshint`
  available, then validate that we're correctly linting the staged JS
  file
* In our pre-commit hook, lint the staged JavaScript files. If either of
  our linting commands fail then exit 1 to abort the commit.
</pre>
</div>
</content>
</entry>
<entry>
<title>Create 'pre-commit', add Python tests</title>
<updated>2015-09-25T05:02:27+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-09-25T05:02:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-hook-pre-commit-python-javascript-syntax-linter/commit/?id=efa1909b2fa955e5170eecda8d1d42598c817f07'/>
<id>efa1909b2fa955e5170eecda8d1d42598c817f07</id>
<content type='text'>
* Create our 'pre-commit' hook script that runs flake8 on Python files in
  the staging area.
* Update test setup to create a git repository for testing.
* Add a test for the Python linter to confirm that it produces the
  correct output when trying to commit and that it only checks files in
  the staging index.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Create our 'pre-commit' hook script that runs flake8 on Python files in
  the staging area.
* Update test setup to create a git repository for testing.
* Add a test for the Python linter to confirm that it produces the
  correct output when trying to commit and that it only checks files in
  the staging index.
</pre>
</div>
</content>
</entry>
</feed>
