From bd42ebc4bdbe476d72d162046b061a8f8c5d0fda Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Sun, 29 Sep 2024 13:56:07 -0400 Subject: [PATCH] build: pre-commit yaml lint --- .pre-commit-config.yaml | 6 ++++++ .yamllint.yml | 8 -------- bootstrap.sh | 3 +++ 3 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 .pre-commit-config.yaml delete mode 100644 .yamllint.yml create mode 100755 bootstrap.sh diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..10666ce --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,6 @@ +--- +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.6.0 + hooks: + - id: check-yaml diff --git a/.yamllint.yml b/.yamllint.yml deleted file mode 100644 index a5f2c7b..0000000 --- a/.yamllint.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- - -extends: default - -rules: - line-length: - max: 120 - level: warning 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