title: How to create a pre-commit hook that will track errors from my Django code before I push to my server
body: <p>I've only recently found out what a pre-commit hook is, and from what I understand it's a file <code>(.git/hooks/pre-commit)</code> that tracks my code for errors before the changes are committed to my server (DigitalOcean). So I want to make this file but I don't know what code to add to it. I've tried to find example files of <code>pre-commit</code> for Django projects but cannot find any. Advice appreciated. </p>