pre-commit: first run
Pre-commit is a python package that helps prevent wrong code getting into a commit. It automates the checking such that small bugs are caught early. It can also be customised!
The readme file that we're using at the beginning is;
# project This project contains both code and settingz
The hook will run once you make a commit.
git add readme.md git commit -m readme-added
The pre-commit should now intercept this file because of a trailing whitespace and a newline missing.
Feedback? See an issue? Something unclear? Feel free to mention it here.
If you want to be kept up to date, consider signing up for the newsletter.