ansible/.pre-commit-config.yaml

32 lines
859 B
YAML
Raw Normal View History

2024-10-10 23:30:37 +02:00
---
ci:
autoupdate_schedule: monthly
2024-10-10 22:50:45 +02:00
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
2024-10-10 23:36:54 +02:00
rev: v5.0.0
2024-10-10 22:50:45 +02:00
hooks:
2024-10-10 23:36:54 +02:00
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-illegal-windows-names
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
2024-10-10 22:50:45 +02:00
- id: check-yaml
args: [--unsafe]
2024-10-10 23:36:54 +02:00
- id: detect-private-key
2024-10-10 22:50:45 +02:00
- id: end-of-file-fixer
2024-10-10 23:36:54 +02:00
- id: mixed-line-ending
2024-10-10 22:50:45 +02:00
- id: trailing-whitespace
2024-10-10 23:30:37 +02:00
- repo: https://github.com/ansible/ansible-lint
rev: v24.9.2
hooks:
- id: ansible-lint
entry: python3 -m ansiblelint -v --force-color --fix
additional_dependencies:
- ansible