From f988f73d0d0d5abe6d4e4a80e6a86f7ef8dbb783 Mon Sep 17 00:00:00 2001 From: Jens Sandmann <jens@sandzwerg.de> Date: Sat, 17 Oct 2020 16:07:08 +0200 Subject: [PATCH] Add basic pre-commit config --- .pre-commit-config.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 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 00000000..474b16a9 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,23 @@ +# 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: v3.2.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + - id: check-added-large-files + - id: detect-private-key + - id: fix-encoding-pragma + - id: mixed-line-ending + +- repo: https://github.com/ansible/ansible-lint.git + rev: v4.3.5 + hooks: + - id: ansible-lint + files: \.(yaml|yml)$ +- repo: https://github.com/markdownlint/markdownlint + rev: v0.11.0 + hooks: + - id: markdownlint -- GitLab