diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-06-05 20:36:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-05 20:36:03 +0200 |
| commit | 5f76238d5cd6f9c850d5237fe639ba2900fd3e6c (patch) | |
| tree | 493c7747d2a2156b99f25541425f7de545ca7599 /manage | |
| parent | fb6dd416e5d3609037d04e58d34fc375c450c4d5 (diff) | |
| parent | 6b9633098d6ac3bc2038d11748ebf9f67c591cf2 (diff) | |
Merge pull request #105 from return42/yaml
[enh] add test.yamllint - lint yaml files
Diffstat (limited to 'manage')
| -rwxr-xr-x | manage | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -29,6 +29,11 @@ pylint.FILES() { grep -l -r --include \*.py '^#[[:blank:]]*lint:[[:blank:]]*pylint' searx searx_extra tests } +YAMLLINT_FILES=() +while IFS= read -r line; do + YAMLLINT_FILES+=("$line") +done <<< "$(git ls-files './tests/*.yml' './searx/*.yml')" + PYLINT_SEARX_DISABLE_OPTION="\ I,C,R,\ W0105,W0212,W0511,W0603,W0613,W0621,W0702,W0703,W1401,\ @@ -391,6 +396,11 @@ pypi.upload.test() { pyenv.cmd twine upload -r testpypi "${PYDIST}"/* } +test.yamllint() { + build_msg TEST "[pylint] \$PYLINT_FILES" + pyenv.cmd yamllint --format parsable "${YAMLLINT_FILES[@]}" +} + test.pylint() { # shellcheck disable=SC2086 ( set -e |