Skip to content

Commit

Permalink
Add yamllint to linters
Browse files Browse the repository at this point in the history
We've got a lot of YAML in this repo... as this repo gets more popular, we'll benefit from having some consistency / linter in place.
  • Loading branch information
jeffwidman committed Aug 16, 2023
1 parent 77e002c commit d9f5de3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,3 +247,5 @@ jobs:
cache: pip
- run: pip install -r requirements.txt
- run: ./bin/lint
# yamllint is installed in GitHub Actions base runner image: https://github.com/adrienverge/yamllint/pull/588
- run: yamllint .
12 changes: 12 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
extends: default

rules:
# Ignore the line length rule in this repo. 120 chars should be enough for the
# stuff we control, but we can't control the test outputs, which are currently
# saved in YAML files.
line-length:
disable
# We could downgrade the line length error to a warning, but for now it clutters the output too much.
# max: 120
# level: warning

0 comments on commit d9f5de3

Please sign in to comment.