Skip to content

A collection of cheesy pre-commit hooks

License

Notifications You must be signed in to change notification settings

sco1/brie-commit

Repository files navigation

PyPI - Python Version PyPI PyPI - License pre-commit.ci status

brie-commit

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.