From 50355de0a5a434f1e0031d55829ad2f85d900e94 Mon Sep 17 00:00:00 2001 From: ssolson Date: Thu, 22 Feb 2024 09:02:14 -0700 Subject: [PATCH] should run perfect on extreme --- .github/workflows/pylint.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 4077091a9..010a4eec5 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -20,17 +20,6 @@ jobs: python -m pip install --upgrade pip pip install pylint - - name: Run Pylint on mhkit/loads/ and check score + - name: Run Pylint on mhkit/loads/ run: | - # Run pylint and capture the output - pylint_output=$(pylint mhkit/loads/ --output-format=text || true) - echo "$pylint_output" - # Extract the score from the output, handling cases where score is not found - score=$(echo "$pylint_output" | grep "Your code has been rated at" | awk '{print $7}' | sed 's/\/10//' || echo "0") - echo "Pylint score: $score" - # Define the minimum acceptable score - min_score=7.0 - # Check if score is a number, exit with code 1 (failure) if not - python -c "import sys; score='$score'; sys.exit(0 if score.replace('.', '', 1).isdigit() else 1)" - # Compare the score with the minimum acceptable score, exit with code 1 if below threshold - python -c "import sys; sys.exit(0 if float('$score') >= $min_score else 1)" + pylint mhkit/loads/exterme