Feature/improve pre commit (#119)

This commit is contained in:
Leo
2023-12-14 21:29:28 +01:00
committed by GitHub
parent c0cd993c69
commit 2447d0d511
5 changed files with 160 additions and 119 deletions

View File

@@ -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
...