Skip to content

Instantly share code, notes, and snippets.

@ophermit
ophermit / pre-commit.py
Last active June 10, 2017 12:45
Git pre-commit tool. Runs code validation scripts, unit-tests scripts. Opens a log in the text viewer
#!/usr/bin/env python
"""
Git pre-commit tool. Features:
* Runs code validation scripts;
* Runs unit-test scripts;
* Opens a log in the text viewer.
Usage example:
Create a new git pre-commit hook with the following content: