I recently discovered the [pre-commit](https://pre-commit.com/) tool. I would add rules fir mypy and other checks