ansible-gitea-management/.pre-commit-config.yaml

36 lines
971 B
YAML
Raw Normal View History

2022-03-04 05:15:25 +00:00
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
2023-02-15 23:43:45 +00:00
rev: v4.4.0
2022-03-04 05:15:25 +00:00
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: pretty-format-json
- id: detect-private-key
- repo: local
hooks:
- id: ansible-lint
name: Ansible-lint
description: This hook runs ansible-lint.
2023-02-15 23:49:50 +00:00
entry: ansible-lint -v --force-color
2022-03-04 05:15:25 +00:00
language: python
# do not pass files to ansible-lint, see:
# https://github.com/ansible/ansible-lint/issues/611
pass_filenames: false
always_run: true
2023-02-15 23:43:45 +00:00
additional_dependencies:
2023-02-15 23:49:50 +00:00
- ansible-core>=2.13.3
2022-03-04 05:15:25 +00:00
- repo: https://github.com/adrienverge/yamllint.git
2023-02-15 23:43:45 +00:00
rev: v1.29.0
2022-03-04 05:15:25 +00:00
hooks:
- id: yamllint
files: \.(yaml|yml)$
types: [file, yaml]
entry: yamllint