add pylint (#15)
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/build Pipeline was successful

Reviewed-on: #15
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
This commit is contained in:
Michael Grote 2024-05-08 14:49:20 +02:00 committed by Michael Grote
parent 547d6865a7
commit 9c90091625

View file

@ -17,15 +17,16 @@ steps:
evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
pylint: pylint:
image: wpengine/pylint:terraform-1.8.2 image: "registry.mgrote.net/pylint:master"
commands: commands:
- pylint . - pip3 install --no-cache-dir --break-system-packages -r requirements.txt
- pylint app.py
when: when:
- event: [push, pull_request] - event: [push, pull_request]
evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"'
shellcheck: shellcheck:
image: "koalaman/shellcheck-alpine:v0.10.0" image: koalaman/shellcheck-alpine:v0.10.0
commands: commands:
- | - |
find . -type f -not -path './.git/*' -not -path './collections/*' -exec file {} \; | while IFS= read -r line; do find . -type f -not -path './.git/*' -not -path './collections/*' -exec file {} \; | while IFS= read -r line; do