improve yamllinting

This commit is contained in:
L3D 2021-03-21 00:08:32 +01:00
parent bb6ae52acd
commit 2eaccfe2a8
No known key found for this signature in database
GPG Key ID: CD08445BFF4313D1
3 changed files with 28 additions and 6 deletions

24
.github/workflows/yamllint.yaml vendored Normal file
View File

@ -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
.gitignore vendored
View File

@ -1,5 +1,7 @@
*.pyc
.cache
# Environments
.env
.venv

View File

@ -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/