build: add pre-commit checks for yaml + shellscript

This commit is contained in:
Marc 2024-11-08 21:50:55 -05:00
parent 1ac5adb151
commit d3fa0dcb96
Signed by: marc
GPG key ID: 048E042F22B5DC79
2 changed files with 13 additions and 0 deletions

10
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,10 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck

3
bootstrap.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
pipx run pre-commit install