mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
improve yamllinting
This commit is contained in:
parent
bb6ae52acd
commit
2eaccfe2a8
3 changed files with 28 additions and 6 deletions
24
.github/workflows/yamllint.yaml
vendored
Normal file
24
.github/workflows/yamllint.yaml
vendored
Normal 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
2
.gitignore
vendored
|
@ -1,5 +1,7 @@
|
||||||
*.pyc
|
*.pyc
|
||||||
|
|
||||||
|
.cache
|
||||||
|
|
||||||
# Environments
|
# Environments
|
||||||
.env
|
.env
|
||||||
.venv
|
.venv
|
||||||
|
|
|
@ -2,11 +2,7 @@
|
||||||
extends: default
|
extends: default
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
# 150 chars should be enough, but don't fail if a line is longer
|
||||||
line-length:
|
line-length:
|
||||||
max: 100
|
max: 150
|
||||||
level: warning
|
level: warning
|
||||||
|
|
||||||
ignore: |
|
|
||||||
/venv/
|
|
||||||
/env/
|
|
||||||
/molecule/
|
|
||||||
|
|
Loading…
Reference in a new issue