From 2eaccfe2a8242d15a9cc5872ba25834d2f74f7de Mon Sep 17 00:00:00 2001 From: L3D Date: Sun, 21 Mar 2021 00:08:32 +0100 Subject: [PATCH] improve yamllinting --- .github/workflows/yamllint.yaml | 24 ++++++++++++++++++++++++ .gitignore | 2 ++ .yamllint | 8 ++------ 3 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/yamllint.yaml diff --git a/.github/workflows/yamllint.yaml b/.github/workflows/yamllint.yaml new file mode 100644 index 0000000..ddb5b89 --- /dev/null +++ b/.github/workflows/yamllint.yaml @@ -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' diff --git a/.gitignore b/.gitignore index 64b554e..e4c3671 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ *.pyc +.cache + # Environments .env .venv diff --git a/.yamllint b/.yamllint index 16fff78..cb32cb1 100644 --- a/.yamllint +++ b/.yamllint @@ -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/