kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'ci/improve_check_pylint' into 'master'
ci: improve check pylint get files command See merge request espressif/esp-idf!26578pull/12525/head
commit
5e1826678d
|
@ -30,7 +30,7 @@ check_pylint:
|
||||||
if [ -n "$CI_MERGE_REQUEST_IID" ]; then
|
if [ -n "$CI_MERGE_REQUEST_IID" ]; then
|
||||||
export files=$(python ${CI_PROJECT_DIR}/tools/ci/ci_get_mr_info.py files ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME} | grep ".py$");
|
export files=$(python ${CI_PROJECT_DIR}/tools/ci/ci_get_mr_info.py files ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME} | grep ".py$");
|
||||||
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
|
||||||
|
|
Ładowanie…
Reference in New Issue