Skip to content

Commit

Permalink
Use yamllint (woodpecker-ci#3066)
Browse files Browse the repository at this point in the history
To fix issues with yaml sequence merges.
  • Loading branch information
qwerty287 authored and fernandrone committed Feb 1, 2024
1 parent de3cabd commit f15e4d2
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 f15e4d2

Please sign in to comment.