Skip to content

Commit

Permalink
improve yamllinting
Browse files Browse the repository at this point in the history
  • Loading branch information
DO1JLR committed Mar 20, 2021
1 parent bb6ae52 commit 2eaccfe
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: 'Yamllint GitHub Actions'

# yamllint disable-line rule:truthy
on:
push:
branches: '*'
pull_request:
branches: '*'
schedule:
- cron: '23 6 * */1 *'

jobs:
yamllint:
name: 'Yamllint'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@master
- name: 'Yamllint'
uses: karancode/yamllint-github-action@master
with:
yamllint_file_or_dir: '.'
yamllint_config_filepath: './.yamllint'
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
*.pyc

.cache

# Environments
.env
.venv
Expand Down
8 changes: 2 additions & 6 deletions .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
extends: default

rules:
# 150 chars should be enough, but don't fail if a line is longer
line-length:
max: 100
max: 150
level: warning

ignore: |
/venv/
/env/
/molecule/

0 comments on commit 2eaccfe

Please sign in to comment.