From 45cbd23bfcca796c3d2c9210b21658c915961caa Mon Sep 17 00:00:00 2001 From: Chris Croome <chris@webarchitects.co.uk> Date: Tue, 13 Jun 2023 08:38:41 +0100 Subject: [PATCH] run ansible-lint using pre-commit --- .pre-commit-config.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cae5906..0d860b3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,4 +15,14 @@ repos: rev: v1.32.0 hooks: - id: yamllint + name: YAML Lint + - repo: https://github.com/ansible/ansible-lint.git + rev: v6.17.0 + hooks: + - id: ansible-lint + name: Ansible Lint + language: python + additional_dependencies: + - jc==1.23.2 + - jmespath==1.0.1 ... -- GitLab