Skip to content

Commit

Permalink
Use yamllint (#3066)
Browse files Browse the repository at this point in the history
To fix issues with yaml sequence merges.
  • Loading branch information
qwerty287 committed Dec 29, 2023
1 parent db45b90 commit 136f2db
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down
13 changes: 13 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 136f2db

Please sign in to comment.