Use yamllint (#3066)

To fix issues with yaml sequence merges.
This commit is contained in:
qwerty287 2023-12-29 12:51:02 +01:00 committed by GitHub
parent db45b9032c
commit 136f2db55b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 2 deletions

View file

@ -6,8 +6,6 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
exclude: 'pipeline/frontend/yaml/linter/schema/.woodpecker/test-merge-map-and-sequence.yml'
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/golangci/golangci-lint
@ -32,6 +30,11 @@ repos:
rev: v3.1.0
hooks:
- id: prettier
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.32.0
hooks:
- id: yamllint
args: [--strict, -c=.yamllint.yaml]
ci:
autofix_commit_msg: |

13
.yamllint.yaml Normal file
View file

@ -0,0 +1,13 @@
extends: default
ignore-from-file:
- docs/.gitignore
- docs/plugins/woodpecker-plugins/.gitignore
- .gitignore
- server/store/datastore/migration/testfiles/.gitignore
- web/.gitignore
rules:
line-length: disable
document-start: disable
comments: disable