mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
ci: improve check pylint get files command
This commit is contained in:
@ -32,7 +32,7 @@ check_pylint:
|
|||||||
if [ -n "$CI_MERGE_REQUEST_IID" ]; then
|
if [ -n "$CI_MERGE_REQUEST_IID" ]; then
|
||||||
export files=$(echo "$GIT_DIFF_OUTPUT" | grep ".py$" | xargs);
|
export files=$(echo "$GIT_DIFF_OUTPUT" | grep ".py$" | xargs);
|
||||||
else
|
else
|
||||||
export files=$(find . -iname "*.py" -print);
|
export files=$(git ls-files "*.py" | xargs);
|
||||||
fi
|
fi
|
||||||
- if [ -z "$files" ]; then echo "No python files found"; exit 0; fi
|
- if [ -z "$files" ]; then echo "No python files found"; exit 0; fi
|
||||||
- run_cmd pylint --exit-zero --load-plugins=pylint_gitlab --output-format=gitlab-codeclimate:pylint.json $files
|
- run_cmd pylint --exit-zero --load-plugins=pylint_gitlab --output-format=gitlab-codeclimate:pylint.json $files
|
||||||
|
Reference in New Issue
Block a user