diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index b3dc879..3885c17 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -21,11 +21,4 @@ jobs: pip install pylint - name: Analysing the code with pylint run: | - pylint $(git ls-files '*.py') > pylint-report.txt || true - SCORE=$(tail -n 2 pylint-report.txt | grep -oE "[0-9]+\.[0-9]+(?=/10)") - echo "Pylint score: $SCORE" - echo "score=$SCORE" >> $GITHUB_ENV - if (( $(echo "$SCORE < 8.0" | bc -l) )); then - echo "Pylint score $SCORE is below the passing threshold of 8.0" - exit 1 - fi \ No newline at end of file + pylint $(git ls-files '*.py') --fail-under=7.0 \ No newline at end of file