Add precommit config
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
This commit is contained in:
parent
84fff86aaa
commit
12b4478bd5
2 changed files with 25 additions and 0 deletions
22
.pre-commit-config.yaml
Normal file
22
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
---
|
||||||
|
# See https://pre-commit.com for more information
|
||||||
|
# See https://pre-commit.com/hooks.html for more hooks
|
||||||
|
repos:
|
||||||
|
|
||||||
|
# - repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
# rev: v3.2.0
|
||||||
|
# hooks:
|
||||||
|
# - id: trailing-whitespace
|
||||||
|
# - id: end-of-file-fixer
|
||||||
|
# - id: check-yaml
|
||||||
|
# - id: check-added-large-files
|
||||||
|
|
||||||
|
- repo: https://github.com/adrienverge/yamllint
|
||||||
|
rev: v1.35.1
|
||||||
|
hooks:
|
||||||
|
- id: yamllint
|
||||||
|
|
||||||
|
# - repo: https://github.com/ansible/ansible-lint
|
||||||
|
# rev: v24.12.1
|
||||||
|
# hooks:
|
||||||
|
# - id: ansible-lint
|
|
@ -4,9 +4,12 @@ extends: default
|
||||||
rules:
|
rules:
|
||||||
comments:
|
comments:
|
||||||
min-spaces-from-content: 1
|
min-spaces-from-content: 1
|
||||||
|
level: error
|
||||||
comments-indentation: false
|
comments-indentation: false
|
||||||
braces:
|
braces:
|
||||||
max-spaces-inside: 1
|
max-spaces-inside: 1
|
||||||
|
document-start:
|
||||||
|
level: error
|
||||||
octal-values:
|
octal-values:
|
||||||
forbid-implicit-octal: true
|
forbid-implicit-octal: true
|
||||||
forbid-explicit-octal: true
|
forbid-explicit-octal: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue