From e1463bc750fbd24b12d407267061d8ae8a3718f1 Mon Sep 17 00:00:00 2001 From: Pytgaen <32298455+pytgaen@users.noreply.github.com> Date: Fri, 5 Jul 2024 19:10:17 +0200 Subject: [PATCH] fix: pylint --ignore .cache not working now use find to exclude .cache --- templates/gitlab-ci-python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/gitlab-ci-python.yml b/templates/gitlab-ci-python.yml index 13a2548..55d0832 100644 --- a/templates/gitlab-ci-python.yml +++ b/templates/gitlab-ci-python.yml @@ -923,7 +923,7 @@ py-lint: - install_requirements - _pip install pylint_gitlab # codeclimate reports # run pylint and generate reports all at once - - _run pylint --ignore=.cache --output-format=colorized,pylint_gitlab.GitlabCodeClimateReporter:reports/py-lint.codeclimate.json,parseable:reports/py-lint.parseable.txt ${PYLINT_ARGS} ${PYLINT_FILES:-$(find -type f -name "*.py")} + - _run pylint --output-format=colorized,pylint_gitlab.GitlabCodeClimateReporter:reports/py-lint.codeclimate.json,parseable:reports/py-lint.parseable.txt ${PYLINT_ARGS} ${PYLINT_FILES:-$(find -type f -name "*.py" -not -path "./.cache/*")} artifacts: name: "$CI_JOB_NAME artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG" expire_in: 1 day -- GitLab