Skip to content

Commit

Permalink
WIP: Lint action
Browse files Browse the repository at this point in the history
  • Loading branch information
derekerdmann committed Jan 15, 2024
1 parent e3e12b3 commit 253c998
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,14 @@ jobs:
- name: List files
id: list-files
run: |
VIM_FILES=$(git ls-files -s '.*vim*' '**/*.vim' | awk '!/^16/ {print $4}')
echo "$VIM_FILES" >> $GITHUB_OUTPUT
YAML_FILES=$(git ls-files -s '*.yml' '**/*.yml' '*.yaml' '**/*.yaml' | awk '!/^16/ {print $4}')
echo "$YAML_FILES" >> $GITHUB_OUTPUT
shell: bash

- name: Vint
run: pipx run --python 3.9 vint '${{ steps.list-files.outputs.vim-files }}'
shell: bash
run: pipx run --python 3.9 vint $(git ls-files -s '.*vim*' '**/*.vim' | awk '!/^16/ {print $4}')

- name: yamllint
run: pipx run yamllint '${{ steps.list-files.outputs.yaml-files }}'
shell: bash
run: pipx run yamllint $(git ls-files -s '*.yml' '**/*.yml' '*.yaml' '**/*.yaml' | awk '!/^16/ {print $4}'
2 changes: 1 addition & 1 deletion .yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ extends: default

rules:
line-length:
max: 110
max: 120
level: warning

0 comments on commit 253c998

Please sign in to comment.