As the first step to my Azure DevOps pipeline I wish to validate my Python files by running pylint. This causes the pipeline to fail. My project is publicly available under this address:
https://dev.azure.com/gcr84/dark-matter-attractor
where all code is visible in the repo, and a pipeline run history is available. I would like to learn why the pylinting causes the pipeline to fail, and I have tried to add the command:
"|| pylint-exit $?"
(see https://pypi.org/project/pylint-exit/),
as well as
failOnStderr: false
(see https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/bash?view=azure-devops).
Below is my bash command:
- bash: find -name '*.py' | xargs pylint || pylint-exit $?
displayName: 'Run pylint'
failOnStderr: false