From eff276f84f6c4683880dad7a7bb009c9297cf7d9 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 6 Oct 2021 06:51:40 -0500 Subject: [PATCH] Use python3 when invoking pylint --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 563eb0e..40e8cef 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,7 +26,7 @@ pylint: - pip install pylint-exit anybadge script: - mkdir ./pylint - - python -m pylint --output-format=text asyncdb | tee ./pylint/pylint.log || pylint-exit "${?}" + - python3 -m pylint --output-format=text asyncdb | tee ./pylint/pylint.log || pylint-exit "${?}" - PYLINT_SCORE=$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' ./pylint/pylint.log) - anybadge --label=Pylint --file=pylint/pylint.svg --value=$PYLINT_SCORE 2=red 4=orange 8=yellow 10=green - echo "Pylint score is "${PYLINT_SCORE}"