I think setting up `pre-commit` hooks with [pre-commit](https://pre-commit.com/) would be a good idea for managing a neat codebase.