GitHub - sco1/brie-commit: A collection of cheesy pre-commit hooks
A collection of cheesy pre-commit hooks
Using brie-commit with pre-commit
Add this to your .pre-commit-config.yaml
repos: - repo: https://github.com/sco1/brie-commit rev: v1.1.0 hooks: - id: brie-commit
Hooks
brie-commit
This hook doesn't do anything except add cheese to your pre-commit invocation.
$ pre-commit run ๐ง๐ง๐ง...................................................................Passed
up-to-no-gouda
This hook replaces all instances of good with gouda in your text files.
$ echo "This is looking pretty good." > ./gouda_vibes.txt $ pre-commit run -a ๐ง๐ง๐ง...................................................................Passed good2gouda...............................................................Failed - hook id: up-to-no-gouda - files were modified by this hook $ cat ./gouda_vibes.txt This is looking pretty gouda.