aboutsummaryrefslogtreecommitdiffstats
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 READMETeddy Wing
Includes a short description, requirements, installation instructions, testing information, and license information.
2015-09-27Add LICENSE (MIT)Teddy Wing
2015-09-27Makefile: Simplify `test` targetTeddy Wing
Remove all the conditions and code copied from Vcsh and only do the bare minimum necessary to run tests. This will bork in more unexpected ways if `git` or `prove` aren't present, but it allows us to get rid of the only GPL-licensed code in the codebase, freeing me up to license the project in any way I want.
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-27t/100-python.t: Perform a `git reset` at test's endTeddy Wing
Ensure we reset the staging area as a teardow/cleanup operation. Otherwise, our JavaScript test (which runs after this one by default) will be working with a dirty staging area and its test will by consequence not pass.
2015-09-27t/100-python.t: Restrict file check to Python filesTeddy Wing
One of our tests confirms that our 2 Python files are in the repo directory. Since we're also adding JavaScript files to this directory, we need to restrict the test to Python files in order to match them correctly. In this case since we're only testing Python files we don't really need to worry about the JS files' existence.
2015-09-25Add 'jshint'Teddy Wing
* Create a package.json with 'jshint' as a dev dependency * .gitignore: Ignore node_modules because why not, and it only has dev dependencies in it.
2015-09-25Add requirements.txtTeddy Wing
Make it explicit that we depend on `flake8`.
2015-09-25Makefile: Ensure virtualenv is sourced before running testsTeddy Wing
Otherwise they'll fail since `flake8` won't be available.
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.
2015-09-23Test setupTeddy Wing
* Add Makefile with test target/goal copied from Richard Hartmann's vcsh. Now that I think about it, I really need to change that because vcsh is GPL. Will do that soon. * Add setup and teardown test files that create a remove a directory. This directory will be a basic git repo where we'll install our git hook and then test output from different commits in the repo.
2015-09-23Initial commit. Add .gitignore.Teddy Wing
Ignore virtualenv directory.