Pre Commit

1 min read git

Written in 2021. Tools, APIs and prices may have changed since.

Lab note What I wrote down while learning this by building with it. Short by design; the code is in pfeilbr/pre-commit-playground.

learn pre-commit

Demo

# install
brew install pre-commit

# generate config
pre-commit sample-config > .pre-commit-config.yaml

# setup git hook scrips
pre-commit install

# run against all the files
pre-commit run --all-files

Resources

Keep learning

Get new guides and courses by email

An occasional email when I publish a new guide, course or post. No spam, and you can unsubscribe any time.

Sent with Buttondown. I never share your address. Prefer a feed? Use the RSS feed.