Wikia/guidelines — pull request #24 by scottrabin (2014-05-29 20:11:18+00:00)
Title: Githooks

This adds a generalized "git pre-commit hook runner" that stashes any non-staged files (including untracked) to allow code quality tools like `jshint` and `pylint` (among others) execute against a clean working directory, though they should only execute against the files passed in to each hook. They also share a configuration file across all repositories, which is important for maintaining consistency across the growing collection of repositories in the Wikia ecosystem.

The configuration files were copied from https://github.com/Wikia/app or https://github.com/Wikia/python-wikiautils and are pointed to directly from the hook; updating hooks should require only a `git pull` in the guidelines repository.