diff options
author | 2022-01-10 18:05:17 +0000 | |
---|---|---|
committer | 2022-01-10 19:41:03 +0000 | |
commit | 9d2adc7a6a342523df2305509c4fffe496402216 (patch) | |
tree | 0d055313f38304232cec98f8881786af262c4b5d | |
parent | Setup project deps for ansible-lint and update README (diff) |
Add config for pre-commit
.
-rw-r--r-- | .pre-commit-config.yaml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..f316f3b --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,20 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.5.0 + hooks: + - id: check-merge-conflict + - id: check-toml + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace + args: [--markdown-linebreak-ext=md] + - repo: local + hooks: + - id: ansible-lint + name: ansible-lint + description: This hook runs ansible-lint within our project's environment. + entry: ansible-lint + language: system + pass_filenames: false + always_run: true + require_serial: true |