From c46fb838c08e1767f06c43d5a979098e3d4943b2 Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Thu, 7 Nov 2024 22:25:50 -0500 Subject: [PATCH] build: add pre-commit checks for yaml and shell scripts --- .pre-commit-config.yaml | 10 ++++++++++ bootstrap.sh | 3 +++ 2 files changed, 13 insertions(+) create mode 100644 .pre-commit-config.yaml create mode 100755 bootstrap.sh diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..36fd866 --- /dev/null +++ b/.pre-commit-config.yaml @@ -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 diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100755 index 0000000..e90b121 --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +pipx run pre-commit install