Skip to content

remove comments

remove comments #2

Workflow file for this run

name: Pylint Loads
on: [push, pull_request]
jobs:
formatting-and-linting:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Run Pylint on mhkit/loads/ and check score
run: |
pylint_output=$(pylint mhkit/loads/ --output-format=text)
echo "$pylint_output"
score=$(echo "$pylint_output" | grep "Your code has been rated at" | awk '{print $7}' | sed 's/\/10//')
echo "Pylint score: $score"
min_score=8.0
python -c "import sys; sys.exit(0 if $score >= $min_score else 1)"