News for hackers. Stuff that matters.
Re:Starting a Django Project the Right Way by kiwidrew on Wednesday July 25, 2012 @06:04AM (#4290203)
A hook that I've found useful (though not perfect -- esp. when working on many branches) is to check that "pip freeze" and requirements.txt match before allowing a commit. My hgrc has the following line for this:

    [hooks]
    pretxncommit.pip = bash -c "diff -u requirements.txt <(source env/bin/activate && pip freeze)"

There are no comments on this comment yet.