aboutsummaryrefslogtreecommitdiffstats
path: root/pre-commit
AgeCommit message (Collapse)Author
2015-09-27pre-commit: Remove unnecessary commented linesHEADmasterTeddy Wing
Remove leftovers from the git sample pre-commit hook that we don't really need in this script.
2015-09-27Add JavaScript linting and testsTeddy Wing
* 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.
2015-09-25Create 'pre-commit', add Python testsTeddy Wing
* 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.