mono-infrastructure/.pre-commit-config.yaml

34 lines
902 B
YAML
Raw Normal View History

2020-12-15 01:01:26 +00:00
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
2020-12-28 16:39:05 +00:00
rev: v3.4.0
2020-12-15 01:01:26 +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
2020-12-15 01:40:25 +00:00
- id: detect-private-key
2020-12-15 01:03:27 +00:00
2020-12-15 01:01:26 +00:00
- repo: local
hooks:
- id: ansible-lint
name: Ansible-lint
description: This hook runs ansible-lint.
entry: ansible-lint --force-color
language: python
# do not pass files to ansible-lint, see:
# https://github.com/ansible/ansible-lint/issues/611
pass_filenames: false
always_run: true
- repo: https://github.com/adrienverge/yamllint.git
2020-12-28 16:39:05 +00:00
rev: v1.25.0
2020-12-15 01:01:26 +00:00
hooks:
- id: yamllint
files: \.(yaml|yml)$
types: [file, yaml]
entry: yamllint