From 5ed24e33e4984428c2d0ea2d0f9fec8a5e369f23 Mon Sep 17 00:00:00 2001 From: Etienne G Date: Tue, 15 Aug 2023 00:29:10 +1000 Subject: [PATCH] Add + update pre-commit --- .pre-commit-config.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..e89b0bd --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,29 @@ +--- +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + - id: check-added-large-files + + - repo: https://github.com/markdownlint/markdownlint + rev: v0.12.0 + hooks: + - id: markdownlint_docker + name: Markdownlint Docker + description: -> + Run markdown lint on your Markdown files + using the project docker image + language: docker_image + files: \.(md|mdown|markdown)$ + entry: markdownlint/markdownlint + + - repo: https://github.com/adrienverge/yamllint.git + rev: v1.29.0 + hooks: + - id: yamllint + args: [--strict]