From 4012b04179a8a9dece674dc66caec726aeee9929 Mon Sep 17 00:00:00 2001 From: youtous Date: Sat, 2 Dec 2023 12:17:01 +0100 Subject: [PATCH] add precommit checks and black --- .pre-commit-config.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1f0b27b84..196f849ee 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,6 +5,15 @@ repos: hooks: - id: end-of-file-fixer - id: trailing-whitespace + + - id: check-yaml + exclude: \.j2.(yaml|yml)$|\.(yaml|yml).j2$ + args: [--unsafe] # see https://github.com/pre-commit/pre-commit-hooks/issues/273 + + - id: check-toml + - id: check-json + - id: check-symlinks + - repo: https://github.com/ansible/ansible-lint.git # get latest release tag from https://github.com/ansible/ansible-lint/releases/ rev: v6.20.3 @@ -13,4 +22,8 @@ repos: additional_dependencies: - jmespath + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 23.11.0 + hooks: + - id: black ...