0e35c4de9b
Tweak the existing codeformat.py and verifygitlog.py to allow them to be easily called by pre-commit. (This turned out to be easier than using any existing pre-commit hooks, without making subtle changes in the formatting.) This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
14 lines
408 B
YAML
14 lines
408 B
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: codeformat
|
|
name: MicroPython codeformat.py for changed files
|
|
entry: tools/codeformat.py -v -f
|
|
language: python
|
|
- id: verifygitlog
|
|
name: MicroPython git commit message format checker
|
|
entry: tools/verifygitlog.py --check-file --ignore-rebase
|
|
language: python
|
|
verbose: true
|
|
stages: [commit-msg]
|