3 ms·
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 allowin
by kiwidrew 14y ago
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)"