Skip to content

Instantly share code, notes, and snippets.

Avatar
😄

Ceasar Bautista Ceasar

😄
View GitHub Profile
@Ceasar
Ceasar / pre-commit
Created Nov 29, 2011 — forked from steder/pre-commit.py
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)