pre-commit is awesome
I recently discovered the ✨ awesomeness that is pre-commit. I steered away
from it for so long because it seemed like a big daunting thing to set up, but
really it’s easy. It will automatically run checks for you. In some cases, it
will even automatically fix them for you. Out of the box, it will do things
like automatically trim extra whitespace, fix file endings, and ensure file
sizes are not too large for git [1].
I recently discovered the ✨ awesomeness that is pre-commit. I steered away from it for so long because it seemed like a big daunting thing to set up, but really it’s easy. It will automatically run checks for you. In some cases, it will even automatically fix them for you. Out of the box, it will do things like automatically trim extra whitespace, fix file endings, and ensure file sizes are not too large for git.
Quickstart # [2]
It comes with a sample-config that is pretty general purpose and use for just about any project in git.
pip instal pre-commit
pre-commit s...