Skip to content

Instantly share code, notes, and snippets.

@gaker
gaker / pre-commit
Created August 29, 2011 16:42 — forked from lentil/gist:810399
PEP8 pre-commit hook in Python
#!/usr/bin/env python
from __future__ import with_statement
import os
import re
import shutil
import subprocess
import sys
import tempfile