From be84f71cb4bbaefb79b063d4ee4860fccccb7d23 Mon Sep 17 00:00:00 2001 From: Julian Gethmann Date: Mon, 13 Mar 2017 10:34:25 +0100 Subject: [PATCH] Add commit-hook and gitignore file --- .gitignore | 2 ++ .pre-commit-config.yaml | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 .gitignore create mode 100644 .pre-commit-config.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c33eb37 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +local +*.retry diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..04b0b13 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,9 @@ +- repo: https://github.com/willthames/ansible-lint.git + sha: v3.4.11 + hooks: + - id: ansible-lint + files: \.(yaml|yml)$ +- repo: https://github.com/pre-commit/pre-commit-hooks.git + sha: c847dd3f2e7260830b6fc66a6a3ed7a837e3bdb1 + hooks: + - id: trailing-whitespace -- GitLab