Pre Commit

git

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