Skip to content

Instantly share code, notes, and snippets.


Ceasar Bautista Ceasar

View GitHub Profile
Ceasar / pre-commit
Created Nov 29, 2011 — forked from steder/
Git Pre-commit Hook For Python now with extra Python!
View pre-commit
#!/usr/bin/env python
#-*- mode: python -*-
from subprocess import Popen, PIPE
import sys
syntax_checker = "pyflakes"
def run(command):
p = Popen(command.split(), stdout=PIPE, stderr=PIPE)